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



The system-level environment variables are there for default values.
When you start a job the system copies all the system environment
variables to the job level. By default when you change a variable it
only changes the job level not the system level version of that
variable. Once that job ends the job variables are gone just like QTEMP.

It has been my experience to set everything that needs to be set in the
CL just like you would with in other application on the AS/400.

I usually do the following:

Set all environment variables that need to be set.
Always put the "." as part of my classpat i.e.
CLASSPATH='.:/myclasses:/myjars/myjar.jar'
Change directory to the base directory of my application.
CALL RPG or JAVA program

Hope that helps



-----Original Message-----
From: rpg400-l-bounces@midrange.com
[mailto:rpg400-l-bounces@midrange.com] On Behalf Of Barbara Morris
Sent: Wednesday, February 12, 2003 7:02 PM
To: rpg400-l@midrange.com
Subject: Re: No Class Def Found Error

Bob Cozzi wrote:
> 
> There are two levels of environment variables
> System level and Job level.
> Of course I don't know if the JVM uses the system-level environment or
just
> the job-level one.
> 

System-level environment variables are set in every job when the job
starts (at least by default, I don't know if there's a job-description
value that prevents this).  The JVM uses the system-level environment
variable.

Actually, in the case of the CLASSPATH envvar and RPG, it's the RPG
runtime that fetches the CLASSPATH environment variable when it start
the JVM.  If you call the invocation API without specifying the
classpath, it doesn't automatically pick up the CLASSPATH envvar.

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.