[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debugging a java programme



2008/4/25, andy <geek_show@dsl.pipex.com>:
Hello

I tried to run a java-based programme on a Lenny machine. This is what happened:

$ java jgraphpad-6.0.4.1-gpl.jar
Exception in thread "main" java.lang.NoClassDefFoundError: jgraphpad-6.0.4.1-gpl.jar
 at gnu.java.lang.MainThread.run(libgcj.so.90)
Caused by: java.lang.ClassNotFoundException: jgraphpad-6.0.4.1-gpl.jar not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
 at java.net.URLClassLoader.findClass(libgcj.so.90)
 at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)
 at java.lang.ClassLoader.loadClass(libgcj.so.90)
 at java.lang.ClassLoader.loadClass(libgcj.so.90)
 at gnu.java.lang.MainThread.run(libgcj.so.90)
$

Is this because I invoked the programme incorrectly or am I missing some libraries?

I'd appreciate any assistance as I need this programme for my studies.

Many thanks

Andy



--

"If they can get you asking the wrong questions, they don't have to worry about the answers." - Thomas Pynchon, "Gravity's Rainbow"


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Hi there.

I'm don't know much about running java in command-line, but I think the problem is that you didn't call the classpath. Firstly, is CLASSPATH environment variable set (Try echo $CLASSPATH)? Secondly, I think you should run java with the "-classpath" switch. Not sure, but the command might look like this:

java -classpath #CLASSPATH,<your_jar> <your_jar>

Try it out let us know.

Cheers,

Rafael

Reply to: