Re: [Kernow] Not able to start Kernow.sh by abspath
Brought to you by:
ajwelch
From: Peng Yu <pen...@gm...> - 2011-10-28 11:13:25
|
Hi Andrew, > Sorry I don't understand, please can you restate the problem. See below. Please let me know if there is anything unclear. >> ~/Downloads/db-class/xml$ /Applications/Kernow\ 1.7.2/Kernow.sh >> Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/kernow/GUI >> Caused by: java.lang.ClassNotFoundException: net.sf.kernow.GUI >> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:190) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Kernow\ 1.7.2 directory is at /Applications on my mac. ~$ ls /Applications/Kernow\ 1.7.2/ Kernow.bat Kernow.sh cache kernow.jar readme.txt Kernow.exe ant extensions lib Suppose that I'm at the directory at ~/Downloads/db-class/xml, I have to run Kernow.sh by referring to its absolute path. But when I do so I get the above errors. It is because some java classes are not found. The fix should be some specify where to search the java class no matter how Kernow.sh is started, but I'm not sure how to do so as I knows little about java. >> /Applications/Kernow 1.7.2$ ./Kernow.sh If I'm at /Applications/Kernow 1.7.2, then calling ./Kernow.sh works fine. -- Regards, Peng |