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