Tux Guitar

Problems

Subject Tuxguitar: Error in startup | SuSe 10.3



Author Message
Jan Rudolph
Post: Nov 30th 2007 at 11:32 AM

Hey!

I'm trying to run tuxguitar on my linux machine.
When typing TuxGuitar.sh I get following error:

configure java-environment ...
configuring TuxGuitar ...
starting TuxGuitar application ...
java virtual machine used: /usr/java/default/bin/../bin/java
classpath used: /usr/share/java/TuxGuitar/TuxGuitar.jar:/usr/share/java/TuxGuitar/share/plugins/TuxGuitar-alsa.jar:/usr/share/java/TuxGuitar/lib/itext-1.4.5.jar:/usr/share/java/swt/swt-gtk-3.3.1.1.jar
main class used: org.herac.tuxguitar.gui.TuxGuitar
flags used: -Xms128m -Xmx128m
options used: -Djava.library.path=/usr/lib64/swt:/usr/lib64:/usr/lib/swt:/usr/lib
arguments used:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3347 or swt-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)

does somebody know how to solve this problem?

Thanx a lot

jan


Back to Top
 
Julian
Post: Nov 30th 2007 at 12:01 PM

Hi,

because your error log, you don't have an official release ( maybe an rpm provided by suse team ? ) so i can't exactly know how the "TuxGuitar.sh" script and swt paths was maded.

So i'll only can say you what the error means:

"UnsatisfiedLinkError"
java throws that error when can't open a native library or method..

this is happening because "libswt-gtk-3347.so" don't exists at "java.library.path"

as your log say, you have "java.library.path" setted with this paths:
/usr/lib64/swt
/usr/lib64
/usr/lib/swt
/usr/lib

does "libswt-gtk-3347.so" exists on one of that folders ??


Back to Top
 
Jan Rudolph
Post: Nov 30th 2007 at 12:58 PM

Hi

> does "libswt-gtk-3347.so" exists on one of that folders ??

yes it does in does /usr/lib64/swt


Back to Top
 
Julian
Post: Nov 30th 2007 at 1:10 PM

Ok

Try run this on a terminal:

java -cp :/usr/share/java/TuxGuitar/TuxGuitar.jar:/usr/share/java/TuxGuitar/lib/itext-1.4.5.jar:/usr/share/java/swt/swt-gtk-3.3.1.1.jar -Djava.library.path=/usr/lib64/swt org.herac.tuxguitar.gui.TuxGuitar

does it works ?


Back to Top
 
Anonymous
Post: Dec 3rd 2007 at 3:40 AM

no I get following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3347 or swt-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)


jan


Back to Top
 
Julian
Post: Dec 3rd 2007 at 8:26 AM

can you show me the result of:
uname -a


Back to Top
 
Jan Rudolph
Post: Dec 3rd 2007 at 10:02 AM

Linux jan 2.6.22.12-0.1-default #1 SMP 2007/11/06 23:05:18 UTC x86_64 x86_64 x86_64 GNU/Linux

jan


Back to Top
 
Julian
Post: Dec 3rd 2007 at 10:20 AM

well your swt arch is right..

there is a problem with the SWT package.. but i can't know why..
i suggest you try install the official swt release for 64 bit.

or, download the x86_64 release of tuxguitar:
http://downloads.sourceforge.net/tuxguitar/TuxGuitar-0.9.1-linux-gtk-x86_64.tar.gz


Back to Top
 
Jan Rudolph
Post: Dec 3rd 2007 at 10:38 AM

downloaded it..
but I don`t know how to install TuxGuitar, only used Yast for installing new software..

jan


Back to Top
 
Jan Rudolph
Post: Dec 3rd 2007 at 10:40 AM

oh.. found the documentation...

jan


Back to Top
 
Julian
Post: Dec 3rd 2007 at 10:46 AM

The file don't need installation..
you only need "uncompress" the .tar.gz, and run the "tuxguitar" launcher script, by 2 click, or setting full path under a terminal:
/where_is/TuxGuitar-0.9.1-linux-gtk-x86_64/tuxguitar

but first, make sure about your java version:
java -version

tuxguitar 0.9 needs jre 1.5 or major, from sun.


Back to Top
 
jan
Post: Dec 3rd 2007 at 11:29 AM

again an error...

Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3347 or swt-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)

jan


Back to Top
 
jan
Post: Dec 3rd 2007 at 11:29 AM

Jan@jan:~/Desktop/TuxGuitar-0.9.1-linux-gtk-x86_64> java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
Jan@jan:~/Desktop/TuxGuitar-0.9.1-linux-gtk-x86_64> tuxguitar
bash: tuxguitar: command not found

jan


Back to Top
 
Julian
Post: Dec 3rd 2007 at 11:43 AM

> again an error...
this is because you still running the other tuxguitar version, not the new.

> bash: tuxguitar: command not found
you need specified the "path" where tuxguitar is to launch it.
you should do: "/place/command" or "./command" to run binaries not at linux PATH folders
"command" without path, will only run if the binary file is in at any folder of PATH env var. ( echo $PATH )


So you need run:
./tuxguitar ( if you are at same folder )
or
~/Desktop/TuxGuitar-0.9.1-linux-gtk-x86_64/tuxguitar


Back to Top
 
jan
Post: Dec 4th 2007 at 9:10 AM

aha ok it's working now

thank you a lot for your help :D

jan


Back to Top