When trying to use the idl2java tool I am getting the message:
Unable to load any JVM, exiting!!!
How do I correct this??
>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
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.
>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.
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/