Changes for page Development-Common Pitfalls and Troubleshooting
Last modified by Pascal Robert on 2010/09/13 00:24
From version 3.1
edited by Quinton Dolan
on 2007/07/12 20:22
on 2007/07/12 20:22
Change comment:
There is no comment for this version
To version 4.1
edited by smmccraw
on 2007/07/08 09:45
on 2007/07/08 09:45
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. qdolan1 +XWiki.smmccraw - Content
-
... ... @@ -4,24 +4,25 @@ 4 4 5 5 I recently found this useful and thought others might too: 6 6 7 -{{ code}}7 +{{panel}} 8 8 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 - System.out.println(urls[i].toString() + "\n"); 14 -} 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 + } 15 15 16 -{{/ code}}17 +{{/panel}} 17 17 18 18 Add this to public static void main(String argv[[]]) before the call to WOApplication.main(argv, Application.class) and add these imports: 19 19 20 -{{ code}}21 +{{panel}} 21 21 22 -import java.io.*; 23 -import java.net.*; 23 + import java.io.*; 24 + import java.net.*; 24 24 25 -{{/ code}}26 +{{/panel}} 26 26 27 27 Category:WebObjects