|
"Jan S. Kjær" wrote: > > I have made a Java program that is placed in IFS and compiled with javac. > (Using native STRQSH) > I have placed a: SystemDefault.properties - under > \\10.45.9.2\pdf\QIBM\UserData\Java400 - with content: java.version=1.4, > because I'm using the split metode. > Everything okey so fare. > > But call the program from RPGLE program, creates an error, telling me, > that it can't find the spilt metode: > The java.version property in SystemDefault.properties is ignored by Java when the JVM is created using JNI (which is how RPG creates the JVM). The only way to get a specific java.version is to use the QIBM_RPG_JAVA_PROPERTIES environment variable: ===> ADDENVVAR QIBM_RPG_JAVA_PROPERTIES VALUE('-Djava.version=1.4;') Don't forget the final semicolon. If you are on V5R1 or V5R2, you need a PTF to get the support for this environment variable: V5R1: SI10069 V5R2: SI10101
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.