M
MJK
In my original message, I asked:
"I am loading a JAR file from a URL. It loads OK. What I want to do,
is use the classes defined in the JAR file as if they were loaded from
the CLASSPATH. Does anyone know if this is possible?"
I have successfully loaded the JAR file, and even done:
'loadClass("com.nmr.MyClass")', and the class gets loaded, and I can
do a 'newInstance'.
But, when I refer to class: com.nmr.MyClass, I get a
ClassNotFoundException.
How can I load the JAR file in such a way that I can refer to the
classes in the JAR file as if they were loaded from the CLASSPATH?
"I am loading a JAR file from a URL. It loads OK. What I want to do,
is use the classes defined in the JAR file as if they were loaded from
the CLASSPATH. Does anyone know if this is possible?"
I have successfully loaded the JAR file, and even done:
'loadClass("com.nmr.MyClass")', and the class gets loaded, and I can
do a 'newInstance'.
But, when I refer to class: com.nmr.MyClass, I get a
ClassNotFoundException.
How can I load the JAR file in such a way that I can refer to the
classes in the JAR file as if they were loaded from the CLASSPATH?