Hi gurus,
This is definetly an out of topic question :-)
But I would apreciate if any can help me.
I want to modify the current classpath of my application,
by reading a properties file if it exists.
prop.user.classname=DummyClass
prop.user.classpath=dummy.jar
than, using reflection I instantiate an object of this class.
something like :
I don't want to do it in the begining of the program but
only if the user access to a special module.
How I can do it?
I tried to use System.setProperty("java.class.path",userPath)
but the :
Class.forName(userClassName).newInstance();
throws a ClassNotFoundException.
(May be because it's too late to modify the classpath used by the ClassLoader
:-))
Any ideas ??
Karim.
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing