Help coderanch get a
new server
by contributing to the fundraiser

Steven Lau

Greenhorn
+ Follow
since Dec 28, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Steven Lau

How can load uer-defined class by default ClassLoder???

try {
Class.forName(className);
} catch (ClassNotFoundException cnfe) {
URL[] urls = new URL[]{---classPath---};
try {
URLClassLoader cl = new URLClassLoader(urls);
Class c = cl.loadClass(className);

c.newInstance(); //Error.
Class.forName(className, false, cl); //ok.
Class.forName(className); //Error.

} catch (Exception e) {
throw cnfe;
}
}

3ks
19 years ago
Congratulations!

I'm preparing...

Look forward to your suggestion.

3ks~~~`````
Well Done! Congratulations!
19 years ago
SCWCD1.3 based on JSP 1.2 and Serverlet 2.3