Don't worry I have figured it out.
Peter
__ Reply Separator _
Subject: Re: Dynamically modifying CLASSPATH
Author: sfloess ([EMAIL PROTECTED]) at lon-mime
Date:08/03/99 13:24
Peter:
You can't modify the system
On Mon, 8 Mar 1999 13:16:36 +, [EMAIL PROTECTED] wrote:
>Can one dynamically modified the CLASSPATH within Java and to create an
>application that loads classes from a modified class path?
[...]
>This does not work for me on JDK1.1.7 sparc-sun-solaris-2.5.1 ?
>But can this sort of code work?
[EMAIL PROTECTED] writes:
> Can one dynamically modified the CLASSPATH within Java and to create an
> application that loads classes from a modified class path?
Yes, you can write your own classloader to extend the loading process
dynamically. I.e. to load classes from a dir. not in your curren
Can one dynamically modified the CLASSPATH within Java and to create an
application that loads classes from a modified class path?
For example:
Properties propsJVM = System.getProperties();
String ncp = extraClassPath + pathSep +
System.getProperty("java.cla