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]