Tux Guitar

Problems

Subject Failed to run under linux



Author Message
Ahmed Toulan
Post: Aug 5th 2007 at 3:01 PM

Hi all,
I am running Kubuntu feisty. I installed tuxguitar using the deb package. But when i try to run it using command "tuxguitar" I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Layout

I checked the launching script everything seems fine!

If anyone could help me I would appreciate it very much

Regards,
Ahmed Toulan.


Back to Top
 
Julian
Post: Aug 6th 2007 at 10:39 AM

the problem is java can't found swt.jar.
check if "/usr/lib/java/swt.jar" exists.
that file is at "libswt3.2-gtk-java" what is a dependency of the tuxguitar ubuntu package.
or did you installed the "debian" package ?


Back to Top
 
Ahmed Toulan
Post: Aug 6th 2007 at 2:16 PM

I installed it using the debian package. I also did "ls -l /usr/lib/java/swt.jar"

and it gave me :
lrwxrwxrwx 1 root root 14 2007-05-04 10:47 /usr/lib/java/swt.jar -> swt3.2-gtk.jar

Which means that the jar files exist?

I really don't know what to do..


Back to Top
 
Julian
Post: Aug 6th 2007 at 2:25 PM

So, that's the problem.
you installed "debian" package.. and the launcher script, has different paths, because swt.jar under debian is installed on "/usr/share/java/" and under ubuntu at "/usr/lib/java"

so you need edit the file /usr/bin/tuxguitar and set correct paths.
but you also will have similar problems with "itext.jar" and tuxguitar share path..

so i suggest you uninstall that package, and install the .deb package builded specially for ubuntu-feisty.


Back to Top
 
Ahmed Toulan
Post: Aug 6th 2007 at 3:02 PM

I uninstalled swt and tuxguitar and reinstalled them again everything is working fine now :)
Thanx a lot for this cool app


Back to Top
 
yannack
Post: Aug 10th 2007 at 6:18 AM

Hi!
Just installed, and I had this error message too!
$ tuxguitar
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Layout
This is how I fixed:
I installed from the official debian unstable repository (I have a debian). I checked, and I do have a usr/share/java/swt.jar file, pointing to /etc/alternatives/swt.jar which is also a link
However this swt.jar link was pointing to an unexisting file /usr/share/java/swt-gtk-3.2.1.jar, so doing as root:
ln -s /usr/share/java/swt-gtk-3.2.2.jar swt.jar solved it !
Hope this helps someone


Back to Top