Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

idl2java Unable to load any JVM, exiting!!!

145 views
Skip to first unread message

DK

unread,
Feb 27, 2007, 9:40:30 AM2/27/07
to

I am using BES 5.2.1 and Java 1.4.2_03

When trying to use the idl2java tool I am getting the message:

Unable to load any JVM, exiting!!!

How do I correct this??

Kevin Dean [TeamB]

unread,
Feb 27, 2007, 5:14:29 PM2/27/07
to
DK wrote:

>How do I correct this??

It sounds like you might have multiple versions installed and something
has messed up the installation (not unheard of).

Try the -VBJjavavm parameter to idl2java to hard-code the path to the JVM.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

DK

unread,
Feb 28, 2007, 5:42:56 AM2/28/07
to

I tried the folowing but it cannot load the JVM.

I C:\>idl2java -VBJjavavm C:\Program Files\Java\j2re1.4.2_03
Failed to load the Java VM specified in command line


Unable to load any JVM, exiting!!!


I also tried C:\Program Files\JavaSoft\JRE\1.3.1_08 and got the same error.

Kevin Dean [TeamB]

unread,
Feb 28, 2007, 12:59:15 PM2/28/07
to
DK wrote:

>I tried the folowing but it cannot load the JVM.
>
>I C:\>idl2java -VBJjavavm C:\Program Files\Java\j2re1.4.2_03

Try putting double-quotes around the directory name, i.e.:

idl2java -VBJjavavm "C:\Program Files\Java\j2re1.4.2_03"

I would also recommend pointing to the JDK directory rather than the JRE
directory. I'm not sure if idl2java uses features not available in the JRE.

Tomohiro Takahashi

unread,
Mar 1, 2007, 8:41:49 PM3/1/07
to
Hi,

Could you try to use JDK instead of JRE?
Then, idl2java of BES5.2.1 does not refer to bin/toolsjdk.config and bin/jdk.config.
So, please use PATH environment to load specific JDK.

For example,
------------------------------------------------------------------------------
C:\BES521\bin>set PATH=C:\j2sdk1.4.2_03\bin;%PATH%

C:\BES521\bin>idl2java -version
VisiBroker Developer for Java [05.02.01.P20] (MAY 11 2006 01:04:56) [XFEIDL]
VisiBroker Developer for Java [05.02.01.P20] (MAY 11 2006 01:04:56) [XBEJAV]
Java: Version 1.4.2_03 from Sun Microsystems Inc.
OS: Windows 2000 version 5.0; CPU: x86

C:\BES521\bin>idl2java -VBJdebug
JVM:
Loaded JVM dll c:\j2sdk1.4.2_03\jre\bin\client\jvm.dll
JavaVMInitArgs:
version 0x00010002
...
...
------------------------------------------------------------------------------

Note: -VBJdebug option is helpful to confirm the JDK version loaded by idl2java.

--
CodeGear
A Borland Company
KEN <TAKAHASHI, Tomohiro>
http://www.codegear.com/
http://www.borland.com/jp/

0 new messages