× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



hockchai Lim wrote:
1) Is there not a way to use java.version property to tell the system to use
the 32 bits version of jvm on a particular job? Currently, I've
(java.version 1.5) as the PROP parameter value for the RUNJVA command. When
I look at the job log, I see "Java Virtual Machine is Classic." in the
joblog.

When you're using more recent versions of IBM i you set the java version using the JAVA_HOME environment variable.

If you want to use the classic JVM, set it to '/QIBM/ProdData/Java400/jdk15' (then, I believe, the java.version property works.

If you want to use the 32bit JVM set JAVA_HOME to '/QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit'.

If you want to use the 64bit JVM set JAVA_HOME to '/QOpenSys/QIBM/ProdData/JavaVM/jdk50/64bit'.

2) From the joblog I can see if it is using Classic or the 32 bits version.
But is there a way to tell what version (1.4, 1.5..) it is using?

From a quick test I just ran, the java.vm.info system property has a lot of good info.

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.