What steps will reproduce the problem?
1. move one directory up from your 'replicatorg' shell script
2. type "./replicatorg-0006-linux-r1/replicatorg"
3.
What is the expected output? What do you see instead?
ReplicatorG should start, but I get
Exception in thread "main" java.lang.NoClassDefFoundError: replicatorg/app/Base
charles@oden:~/reprap$ ./replicatorg-0006-linux-r1/replicatorg
Caused by: java.lang.ClassNotFoundException: replicatorg.app.Base
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: replicatorg.app.Base. Program will exit.
What version of the product are you using? On what operating system?
ReplicatorG-006
Please provide any additional information below.
To make everything happy you have to add one line to the top of the script.
After I add "cd `dirname $0`" after the first line, I am able to make a
menu item for ReplicatorG and execute it from there.
Change
"""
#!/bin/sh
CLASSPATH=lib/ReplicatorG.jar:java/lib/rt.jar:lib:lib/build:lib/antlr.jar:lib/co
re.jar:lib/j3dcore.jar:lib/j3dutils.jar:lib/mrj.jar:lib/oro.jar:lib/registry.jar
:lib/RXTXcomm.jar:lib/vecmath.jar:lib/miglayout-3.7.jar
export CLASSPATH
"""
to
"""
#!/bin/sh
cd `dirname $0`
CLASSPATH=lib/ReplicatorG.jar:java/lib/rt.jar:lib:lib/build:lib/antlr.jar:lib/co
re.jar:lib/j3dcore.jar:lib/j3dutils.jar:lib/mrj.jar:lib/oro.jar:lib/registry.jar
:lib/RXTXcomm.jar:lib/vecmath.jar:lib/miglayout-3.7.jar
export CLASSPATH
"""
Original issue reported on code.google.com by charles....@gmail.com on 12 Aug 2009 at 12:51
Original issue reported on code.google.com by
charles....@gmail.com
on 12 Aug 2009 at 12:51