 |
 |
 |
 |
|
 |
 |
Problems
Java exeception during startup
|
|
| Author |
Message |
|
YodaSlack
|
|
Post:
Jun 20th 2008 at 3:20 PM |
|
|
Hi,
May be you knwo what is going on here:
revager% tuxguitar
Exception in thread "main" java.lang.NoClassDefFoundError: org/herac/tuxguitar/gui/TGMain
Caused by: java.lang.ClassNotFoundException: org.herac.tuxguitar.gui.TGMain
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
revager% java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
revager% ls /usr/lib/libcair*
/usr/lib/libcairo.la /usr/lib/libcairo.so.2
/usr/lib/libcairo.so /usr/lib/libcairo.so.2.11.7
Version of tuxguitar is 1.0. I used installer for linux (tuxguitar-1.0-linux-x86-installer.bin)
|
|
| Back to Top |
| |
|
Julian
|
|
Post:
Jun 20th 2008 at 3:40 PM |
|
|
Hi,
the error "java.lang.NoClassDefFoundError: org/herac/tuxguitar/gui/TGMain", is saying the TGMain class of tuxguitar didn't found.
so there is a CLASSPATH problem.
As you installed "tuxguitar-1.0-linux-x86-installer.bin"
and you exec "tuxguitar" without set a path, i think you made a symbolic link on /usr/bin (or /usr/local/bin, etc )
That launcher script of that package was maded thinking on allow to move the folder where you want,
so the first what "where_is_tuxguitar/tuxguitar" script do, is check the current directory, and set relative paths.
e.g: tuxguitar.jar is setted as
current_dir/tuxguitar.jar
As you run it on a symbolic link, the current_dir is taked as /usr/bin, so /usr/bin/tuxguitar.jar don't exists.
If you want to add tuxguitar on /usr/bin, i suggest you make a new "script" instead of a symbolic link.
so the new script can be as:
-----------------------------
#!/bin/sh
/where_is_tuxguitar/tuxguitar
-----------------------------
then i think that script will work without problems.
|
|
| Back to Top |
| |
|
YodaSlack
|
|
Post:
Jun 20th 2008 at 3:49 PM |
|
|
|
Very simple solution and I did not check it. Thanks a lot.
|
|
| Back to Top |
| |
Post Reply
|
 |
 |
 |
 |
|