Could not create Java virtual machine

1) installed jdk1.3

2) Classpath is:

"java -cp d:\dbrexe\;d:\jdk1.3\jre\bin;d:\Progra~1\MQSeries\java\lib\;d:\Progra~1\MQSeries\java\bin;d:\Progra~1\MQSeries\java\lib\com.ibm.mq.jar;d:\Progra~1\MQSeries\java\lib\com.ibm.mqbind.jar;C:\Progra~1\JavaSoft\JRE\1.3\bin; RR"

In a WinNT environment, will insufficient memory result in the message "Could not create Java virtual machine" when invoking the JVM? Any other reasons for this message to be displayed? Thanks.

[503 byte] By [ecoknowmics] at [2007-9-26 3:59:01]
# 1
ive got a suggestion. why cant u set those cp in the CLASSPATH env varible instead of given it in the command line? uve got too many of those. may thats the reason. again, im not sure, but its just a suggestion. :) Hope it helps.G.P.
ga11 at 2007-6-29 12:52:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

1. make sure you are running the right jvm: if you didn't add the jdk bin directory in the front of your PATH you may actually run microsoft's jvm. test it with java -version.

2. try to run with java -verbose

Iulian

P.S.

If this is the command line then you forgot to add the main class :-)

iulian_musat at 2007-6-29 12:52:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

> 1. make sure you are running the right jvm: if you

> didn't add the jdk bin directory in the front of your

> PATH you may actually run microsoft's jvm. test it

> with java -version.

> 2. try to run with java -verbose

>

> Iulian

> P.S.

> If this is the command line then you forgot to add the

> main class :-)

Thanks very much Iulian for your suggestions. Part of my problem is that sometimes it runs OK, sometimes not. Wouldn't a PATH problem cause it to fail consistently? RR is the main class.

ecoknowmics at 2007-6-29 12:52:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4

> ive got a suggestion. why cant u set those cp in the

> CLASSPATH env varible instead of given it in the

> command line? uve got too many of those. may thats the

> reason. again, im not sure, but its just a

> suggestion. :) Hope it helps.

> G.P.

thanks G.P. sure needs cleaning up.

ecoknowmics at 2007-6-29 12:52:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5

> Wouldn't a PATH problem cause it to fail

> consistently? RR is the main class.

Well, yes : if you are running all the time a different version of jvm, then, depending on what you are doing, it can crash or not.

try java -version just to make sure :-))

I have no other ideas unless you are can give us more details (ex. the output of -version, -verbose, etc.)

Iulian

iulian_musat at 2007-6-29 12:52:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...