From: Aaron A. <aa...@cs...> - 2007-12-28 23:44:56
|
I run jboost on a Linux x64 machine as well. When I set the CLASSPATH environment variable to nothing, I get the following error: --------------------------------- You do not have your CLASSPATH variable set correctly. You have the following dirs in your java path: You need to have the following in your path: JBOOST_HOME/dist/jboost.jar. JBOOST_HOME/lib/concurrent.jar. If jboost.jar doesn't exist, downloaded the distribution again. To set CLASSPATH, see the documentation in JBOOST_HOME/doc or online. JBoost jar file is: Exception in thread "main" java.lang.NoClassDefFoundError: jboost/controller/Controller --------------------------------- When I set the CLASSPATH as such: > CLASSPATH="~/jboost/dist/jboost.jar:~/jboost/lib/concurrent.jar" where I use tildes '~' instead of '/home/aarvey' I get the following more cryptic error message: ---------------------------- JBoost jar file is: ~/jboost/dist/jboost.jar Exception in thread "main" java.lang.NoClassDefFoundError: jboost/controller/Controller ---------------------------- I'm guessing that using tildes may be your problem. Try doing full classpath yourself and see if that solves your problems. Let me know success/failure. Aaron On Thu, 27 Dec 2007, Shiv N. Vitaladevuni wrote: > Hi, > > I downloaded jboost-1.4 on a Linux x64 machine. When I execute command > ./jboost -S demo/stem > I get the following error message: > JBoost jar file is: ~/research/lib/jboost-1.4/dist/jboost.jar > Exception in thread "main" java.lang.NoClassDefFoundError: > jboost.controller.Controller > at gnu.java.lang.MainThread.run(libgcj.so.7rh) > Caused by: java.lang.ClassNotFoundException: > jboost.controller.Controller not found in > gnu.gcj.runtime.SystemClassLoader{urls=[file:./], > parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} > at java.net.URLClassLoader.findClass(libgcj.so.7rh) > at java.lang.ClassLoader.loadClass(libgcj.so.7rh) > at java.lang.ClassLoader.loadClass(libgcj.so.7rh) > at gnu.java.lang.MainThread.run(libgcj.so.7rh) > > Can you tell what I am doing wrong? I have set the CLASSPATH environment > variable as mentioned in README, and checked with the Sun website that > the installed Java is up to date. > > Thanking you, > Regards, > Shiv > > |