MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » February 2013

Re: java.version message



fixed

On 2/11/2013 2:46 PM, Dan Kimmel wrote:

Java version is part of the properties that RPG passes to the JVM
when RPG starts java. As far as I know, the RPG compiler generates
it.
...
I don't have a V7R1 system to try this on, but you might try
recompiling the RPG modules that call the java methods and rebinding
the programs or service programs.

The RPG runtime only passes the properties that are specified in the QIBM_RPG_JAVA_PROPERTIES environment variable.

The Java version isn't part of the RPG program, so recompiling won't make any difference.

To get rid of that message, just remove the java.version property from the RPG environment variable, and from any of the places that Java looks for Java properties.

http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzaha%2Fsysprop.htm

On that page, it mentions properties specified through "JNI invocation API" as having the highest precedence. The properties specified through the QIBM_RPG_JAVA_PROPERTIES envvar fall into that category. The RPG runtime calls the JNI invocation API to start the JVM; it passes any properties found in the RPG envvar, as well as the java.class.path property if the CLASSPATH envvar exists in the job.






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact