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 class path. However, if you create your own class
loader, than you can do it with the classloader. If you do not understand,
please reply...
[EMAIL PROTECTED] wrote:
> 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.class.path");
> propsJVM.put("java.class.path",ncp);
>
> The next step is thus
>
> try { Class.forName("org.xenon.FunkyDancer"); }
> catch ( ClassNotFoundException e ) { ... }
>
> This does not work for me on JDK1.1.7 sparc-sun-solaris-2.5.1 ?
> But can this sort of code work?
>
> Peter
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]