pekrzyz@xxxxxxxxxxxxxxx wrote:
> ...
> That user was only able to successfully run the RPG program, once we
> created a  personal directory for that user under '/home'  and using their
> loginid as the folder name. We then copied the Java programs to their
> newly created folder and changed the environment variable to point to
> their personal folder under home.
> 
> The problem with this solution is that if I make changes to the Java
> program, I have to copy it to everyone's personal folder (not the
> solution).
> 
> What is going on here with the classpath.  It seems to be ignored if it is
> not set to your personal (loginid) folder.

When are you setting up the CLASSPATH environment variable?  The only
thing I can think of that would cause this problem is that the JVM is
already started for the job before the CLASSPATH envvar is added.  I
think the default classpath includes the current directory which would
explain why having the class in the home directory works.


This thread ...

Replies:

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

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