Programming__WebObjects-Web Applications-Development-Common Pitfalls and Troubleshooting
Version 5.1 by smmccraw on 2007/07/08 09:45
Debugging Classpath Problems
Chuck Hill
I recently found this useful and thought others might too:
System.out.println("\nClassPath Follows....\n");
ClassLoader classLoader = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader)classLoader).getURLs();
for(int i=0; i<urls.length; i++)
{
System.out.println(urls[i].toString() + "\n");
}
Add this to public static void main(String argvDevelopment-Common Pitfalls and Troubleshooting) before the call to WOApplication.main(argv, Application.class) and add these imports:
import java.io.*;
import java.net.*;
Category:WebObjects