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 SystemDefault.properties 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 SystemDefault.properties file in my home
directory and it contained:
java.home=java.home=/QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit

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

Which, apparently, causes Java all sorts of problems.

david

--
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 http://archive.ridewithdavid.com. Any amount is
appreciated.
--
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,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 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.