Operating System - HP-UX
1830296 Members
2361 Online
110000 Solutions
New Discussion

Re: Java JDK 1.3 VM version

 
Fred TEMPO
Occasional Contributor

Java JDK 1.3 VM version

Hi,

I'm looking to run an EJB container (JRun from Allaire-Macromedia) but a wrong VM version is found:
05/31 17:52:13 warning (JRun) The ejb service was not loaded due to an incompatible VM (JavaVM-1.3.0.01)
JRun EJB needs 1.3.0 JDK, and I'm using HP JDK 1.3.0.01 ...

With a little java hack using System.getProperties() method, I've found a significant difference between Sun JDK (NT2000) and HP JDK(HP-UX) for "java.version" property:

HP JDK 1.3: java.version = JavaVM-1.3.0.01
Sun JDK 1.3: java.version = 1.3.0

So if VM verification is done using string comparaison, HP JDK can't be used (but there's no other way for HP-UX 11.00)

Does anyone have had this kind of problem, and how did he resolve it ?
Is it a way to change system property, so that the answer will be "1.3.0" ?

Thanks
2 REPLIES 2
R. Allan Hicks
Trusted Contributor

Re: Java JDK 1.3 VM version

I've not bumped into this, but I'm still relatively new to JAVA. Have you tried www.jguru.com? I did a search there to see if I could find an article related to your problem, but I didn't have much luck. They have forums there too, so you might stand a better chance of finding the answer there.

-Good Luck
"Only he who attempts the absurd is capable of achieving the impossible
Fred TEMPO
Occasional Contributor

Re: Java JDK 1.3 VM version

Hi,

I've didn't get a nice way to resolve the problem: Allaire's support told me to upgrade to JRun release 3.1 (I was using 3.0), and I do so. Now EJB containers are working fine.

But I've got a nice idea this morning, too late for my problem but can still help someone else:
System properties can be set by two ways:
- add a declaration in java comand line:
java -Dawt.toolkit="my.new.toolkit.class" GuiApplication should be used when you have a customized AWT toolkit. This doesn't work for "java.version" property (I didn't try to change Security Manager"
- change the property in a wrapper program. System.setProperty("java.version","1.3.0.acmesoft") works fine. Then you have to call main class form you application.

Hope this will help anyone...

bye