|
"Mike Pantzopoulos - (H/O)" wrote:
I managed to solve the problem by setting the 'QIBM_RPG_JAVA_PROPERTIES' environment variable to '-Djava.version=1.4;' , even though the JAVA *VERSION showed that it was using the 1.4 JDK !! Is there any explanation for this inconsistency?
This problem was reported in APAR SE19453; it's fixed in V5R4. RPGLE-RUN-INCORROUT DEFAULT JDK IS 1.3 BUT SYSTEM DEFAULT IS 1.4 Using command JAVA *VERSION shows that the default JDK is 1.4. Calling Java using the JAVA command or using the QSH java command uses this default version if no version is specified. However, when an RPG program starts the JVM using the EXTPROC(*JAVA) support, the JDK version is 1.3. The ILE RPG runtime will be changed in a future release so that when the JVM is started by the ILE RPG runtime due to an EXTPROC(*JAVA) call, and the java.version property is not set in the QIBM_RPG_JAVA_PROPERTIES environment variable, the JVM will use the default JDK for the system.
As an Amazon Associate we earn from qualifying purchases.
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.