ADDENVVAR can be *JOB aware or *SYS aware:

ADDENVVAR ENVVAR(JAVA_HOME) LEVEL(*JOB)
ADDENVVAR ENVVAR(JAVA_HOME) LEVEL(*SYS)


On Thu, May 30, 2013 at 2:53 PM, Glenn Holmer <gholmer@xxxxxxxxxxxxxx>wrote:

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?)

--
Glenn Holmer
Weyco Group, Inc.
phone: 414-908-1809
fax: 414-908-1601
--
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.