×
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.
Joe wrote:
Both pieces of advice turned out to be great. The machine is using
1.3 by default, but by adding that environment variable I am able to
run with a 1.4 VM. I was speaking with one of our SA's today and he
mentioned that perhaps there was a compiler option that would allow
the programmer to choose the VM, has anyone heard of that? As a
follow-up question, how/when is the default JVM specified? I saw some
IBM documentation about installing Java and running with multiple VMs,
but I didn't see much about configuring/choosing which one would run
when.
If you mean an RPG compiler option to choose the VM, there isn't one.
You can use the SystemDefault.properties file to set the default
java.version for all uses of Java. (At least, that's true if you are on
V5R3 or later. Prior to V5R3, you must use the QIBM_RPG_JAVA_PROPERTIES
environment variable to set the java.version property for Java calls
from RPG.)
Start here
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaha/sysprop.htm
to see all the places the system will look for the
SystemDefault.properties file.
The Invocation API is listed as the first in the order of precedence on
that page. When you use RPG to start the JVM, RPG uses the Invocation
API to start the JVM, and it passes in the properties from the
QIBM_RPG_JAVA_PROPERTIES environment variable. So the values of the
QIBM_RPG_JAVA_PROPERTIES properties will always win when the RPG runtime
starts the JVM.
This page talks about how to control which JDK gets used:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaha/multjdk.htm
It says that the java.version property controls the JDK; near the end of
the page it says which will be the default JDK depending on what you
have installed.
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.