11.4 tuxguitar problem

I have a problem with tuxguitar on openSUSE 11.4 here: it doesn’t start with the following exception:

~> tuxguitar
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        no swt-gtk-3730 in java.library.path
        no swt-gtk in java.library.path
        Can't load library: /home/vinzent/.swt/lib/linux/x86/libswt-gtk-3730.so
        Can't load library: /home/vinzent/.swt/lib/linux/x86/libswt-gtk.so
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:284)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:193)
        at org.eclipse.swt.internal.C.<clinit>(C.java:21)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)
        at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
        at org.herac.tuxguitar.gui.TGMain.main(Unknown Source)

I have tuxguitar 1.2-14.1 and eclipse-swt 3.375-8.1 installed, both from the OBS Education repo. Folder ~/.swt/lib/linux/x86/ is present, but it’s empty. Also, there is files libswt-gtk-3735.so and libswt-gtk.so in the /usr/lib/eclipse, provided by eclipse-swt package.


I have the same problem with Opensuse 12.1.
When I used 11.4 Tuxguitar was running. In Opensuse 11.4, I used Sun/Oracle Java, in 12.1 I’am using OpenJDK. Perhaps this is the reason.

Best wishes


It searches for the libs of swt-gtk in the home directory.

Just set a CLASSPATH=/usr/lib64/eclipse var before you start it, and it will work.

No need for installing Oracle…

First of all, I’ve tried to remove openjdk and install sun java. This does not solve the problem.
Then, I’ve set the classpath variable:

~> export CLASSPATH=/usr/lib/eclipse

After that tuxguitar started (splash screen appeared), but immediately crashed with the other error:

~> tuxguitar          
# A fatal error has been detected by the Java Runtime Environment:
#  SIGSEGV (0xb) at pc=0xa75001a1, pid=24304, tid=3064802160
# JRE version: 6.0_29-b11
# Java VM: Java HotSpot(TM) Server VM (20.4-b02 mixed mode linux-x86 )
# Problematic frame:
# C  0xa75001a1
# An error report file with more information is saved as:
# /home/vinzent/hs_err_pid24304.log
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
^CMultiple segmentation faults occurred; can't display error dialog

Here is the full log: hs_err_pid24304.log - Pastebin.com

Here is the output of zypper search -is java:

i | java-1_6_0-sun        | пакет       | 1.6.0.u29-0.2.1 | i586        | openSUSE-11.4-Update
i | java-1_6_0-sun        | исправление | 5320            | noarch      | openSUSE-11.4-Update
i | java-1_6_0-sun        | исправление | 4694            | noarch      | openSUSE-11.4-Update
i | java-1_6_0-sun        | исправление | 4493            | noarch      | openSUSE-11.4-Update
i | java-1_6_0-sun        | исправление | 4147            | noarch      | openSUSE-11.4-Update
i | java-1_6_0-sun-alsa   | пакет       | 1.6.0.u29-0.2.1 | i586        | openSUSE-11.4-Update
i | java-1_6_0-sun-devel  | пакет       | 1.6.0.u29-0.2.1 | i586        | openSUSE-11.4-Update
i | java-1_6_0-sun-plugin | пакет       | 1.6.0.u29-0.2.1 | i586        | openSUSE-11.4-Update
i | java-ca-certificates  | пакет       | 1-9.1           | noarch      | openSUSE-11.4-Oss   

Temporaly you can start tuxguitar after doing this:
changing 159 line of /usr/bin/tuxguitar from
export CLASSPATH=$CLASSPATH:/usr/lib64/java/swt.jar
to this:
export CLASSPATH=$CLASSPATH:/usr/lib64/eclipse

See https://bugzilla.novell.com/show_bug.cgi?id=732684