Version 5.1 by smmccraw on 2007/07/08 09:45

Hide last authors
Quinton Dolan 2.1 1 == Debugging Classpath Problems ==
2
3 === Chuck Hill ===
4
5 I recently found this useful and thought others might too:
6
smmccraw 4.1 7 {{panel}}
Quinton Dolan 2.1 8
smmccraw 4.1 9 System.out.println("\nClassPath Follows....\n");
10 ClassLoader classLoader = ClassLoader.getSystemClassLoader();
11 URL[] urls = ((URLClassLoader)classLoader).getURLs();
12 for(int i=0; i<urls.length; i++)
13 {
14 System.out.println(urls[i].toString() + "\n");
15 }
Quinton Dolan 2.1 16
smmccraw 4.1 17 {{/panel}}
Quinton Dolan 2.1 18
19 Add this to public static void main(String argv[[]]) before the call to WOApplication.main(argv, Application.class) and add these imports:
20
smmccraw 4.1 21 {{panel}}
Quinton Dolan 2.1 22
smmccraw 4.1 23 import java.io.*;
24 import java.net.*;
Quinton Dolan 2.1 25
smmccraw 4.1 26 {{/panel}}
Quinton Dolan 2.1 27
28 Category:WebObjects