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.
__
Kenny Freeman <[EMAIL PROTECTED]>
"a population that gives up its freedoms in the name of order will
ultimately end up losing both."
On Fri, 2 Oct 1998 [EMAIL PROTECTED] wrote:
> You can also get the classpath from SystemProperty( "java.classpath" )
> or something like that.
>
> Then use you write a PathnameResolve sth that search for the classes
> by looking at each of the separated directory. You could use
> the StringTokenizer(":") to get each directory. Loop through all
> directories and try to see if there is File called xxx.class or
> whatever.
>
> Or maybe there's a method in ClassLoader which accepts a new
> (augmented) classpath.
>
> Pete
>
> ______________________________ Reply Separator _________________________________
> Subject: Re: Dynamic modification of CLASSPATH
> Author: gaolei ([EMAIL PROTECTED]) at lon-mime
> Date: 02/10/98 08:59
>
>
> You could write your own class loader.
>
> Domingo Pinya wrote:
>
> > Hi:
> >
> > There is any way to change the value of CLASSPATH dynamicaly, that is,
> > how I can include a new directory into CLASSPATH after my program is
> > runnning, to instantiate a class that is inside it?
> >
> > Thanks.
> >
>
>
>