On 05/23/2013 08:58 AM, Dan Kimmel wrote:
Extend the ADDENVVAR command with LEVEL(*SYS) to set the default for the machine.

From: http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2Funix1a.htm

System-level environment variables. The system-level environment variables are stored in a global environment space that is persistent across IPLs and is not associated to a particular job. They can be manipulated by using the Qp0zDltSysEnv(), Qp0zGetAllSysEnv(), Qp0zGetSysEnv(), and Qp0zPutSysEnv() APIs, as well as the CL commands ADDENVVAR, CHGENVVAR, RMVENVVAR, and WRKENVVAR. These variables exist until they are deleted. There is a limit of 4095 system-level environment variables.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bruce Jin
Sent: Thursday, May 23, 2013 8:41 AM
To: Java Programming on and around the IBM i
Subject: Re: setting default Java version

Looks like it is by setting JAVA_HOME:

ADDENVVAR ENVVAR(JAVA_HOME)
VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk70/64bit')

That only needs to be done once, right? (i.e. not in QSTRUP?)


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-2021 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.