Remember that the J9 JVM's only recognize the version from whatever the JAVA_HOME environment variable contains. In truth, it's the java command in qshell that does the version selection and after V6R1, it no longer pays any attention to the java.version set in the command line. There are several ways to set JAVA_HOME. One is the SystemDefault.Properties file as you discovered. The file in your home directory is high in the precedence list and will override whatever was in JAVA_HOME before the call to the java command.

Notice that there's a symlink at /QIBM/ProdData/Java that points to /QOpenSys/QIBM/ProdData/JavaVM to make older JAVA_HOME settings work.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs
Sent: Monday, November 25, 2013 9:40 AM
To: Java Programming on and around the iSeries / AS400
Subject: Re: Error launching java ... unable to open jars.cfg

On 11/23/2013 6:59 PM, David Gibbs wrote:
/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/bin/java -version
getBootClasspath failed to open file
java.home=/QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit/lib/jars.cfg - A
file or directory in the path name does not exist.
JVMJ9VM015W Initialization error for library jclscar_24(2):
getBootClasspath returned NULL
Unable to create Java Virtual Machine.

I figured out the problem ... I had a file in my home
directory and it contained:

(not a typo in the email, thatis 'java.home=java.home...'

Which, apparently, causes Java all sorts of problems.


IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding a metric century (100 km / 62 miles) in the 2014 Chicagoland Tour de
Cure to raise money for diabetes research, education, and advocacy.
Sponsor me by visiting Any amount is
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

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-2022 by 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.