Encountered JVM loader error when running Naming Service
Problem:
Product: VisiBroker
Version: VisiBroker 8.0
Platform: Any supported
When running Naming Service, the following JVM loader error occurs,
JVM Loader Error:
JVM can't be located in the PATH and the "javahome" specified in the configuration file.
The issue can be reproduced with the following steps:
1. Install 32-bit VisiBroker.
2. Update with 64-bit service pack.
3. Run ". ./vbroker.sh" from the bin directory of VisiBroker.
4. Run "nameserv".
Resolution:
The CPU architecture (32-bit or 64-bit) of the installed JVM does not match with the architecture of the applied VisiBroker installer binary or service pack archive. The binary that matches with the architecture of the installed JVM should be applied instead.
To check the supported architecture, refer to the VisiBroker links in the Product Updates page:
http://supportline.microfocus.com/supportresources/CORBAPlatformInfo.aspx
Click the link of the version or service pack and download the file that corresponds to the architecture of the installed JVM.
To check the architecture of the installed JVM, run either of the following commands:
For Java 32-bit version, run "java -d32 -version".
For Java 64-bit version, run "java -d64 -version".
The above commands return the version of the installed JVM that corresponds to the given architecture. If, for example, 64-bit is not supported, the following message will display:
"Running a 64-bit JVM is not supported on this platform."
The above commands do not work on Windows. In Windows, just run "java -version" and the output will display the JVM's architecture. The following output shows a 64-bit Java installed.
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)