So I am afraid you must become one with "ClassLoader" (and maybe also 
     the "SecurityManager") class somewhere a long the line(!).


______________________________ Reply Separator _________________________________
Subject: Re: Dynamic modification of CLASSPATH
Author:  Michael.Sinz ([EMAIL PROTECTED]) at lon-mime
Date:    03/10/98 17:44


On Sat, 3 Oct 1998 12:10:04 -0300 (ADT), Kenny Freeman wrote:
     
>could you not get an instance of runtime and execute 
>'export CLASSPATH=/some/new/classpath' or set env, depending
>what shell your using. Then again, that is not very platfom independant 
>now is it?....Well, it would work.
     
Well, it would only work if:
     
1)  THe security manager lets you do that
2)  You start a new JVM from within the context of the call.
     
The #2 thing is critical since the "export ..." will run in a sub-shell 
and will not directly affect the current JVM environment.
     
So, at best you could do:
     
"export CLASSPATH=... ; java startnewjvm"
     
And this is even less likely to be what you need or want and it is 
even less likely to work on many platforms or even the same platform 
with different installations.
     
     
Michael Sinz -- Director of Research & Development, NextBus Inc. 
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com 
My place on the web ---> http://www.users.fast.net/~michael_sinz
     

Reply via email to