Tux Guitar

Problems

Subject can't start TuxGuitar



Author Message
Iori_1304
Post: Feb 3rd 2008 at 7:51 AM

Hi,
i get this error when i try to launch the jar or the script tuxguitar file:
when launchin the jar file:
saissi@dhcppc1:~/Desktop/temp/TuxGuitar-0.9.1-linux-gtk-x86> java -jar TuxGuitar.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3232 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.gtk.OS.(OS.java:22)
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.(Display.java:126)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)

i don t have any idea that could be..
thanks you!


Back to Top
 
Julian
Post: Feb 3rd 2008 at 11:03 AM

Hi,
the .jar file will not work if you don't set the "java.library.path" property, so if you want launch the jar file, you must exec this line:
java -jar -Djava.library.path=./lib TuxGuitar.jar

However, the script file was maded todo that...
tell me, are you sure you have the "exactly" same error when you try exec "./tuxguitar" ??


Back to Top
 
Iori_1304
Post: Feb 3rd 2008 at 2:44 PM

Hi,
Thanks for the fas response!
hmm..in that case i get that:
saissi@dhcppc1:~/Desktop/temp/TuxGuitar-0.9.1-linux-gtk-x86> ./tuxguitar
Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library `gjsmalsa' not found (as file `libgjsmalsa.so') in gnu.classpath.boot.library.path and java.library.path
at java.lang.Runtime.loadLibrary(Runtime.java:763)
at java.lang.System.loadLibrary(System.java:662)
at gnu.javax.sound.midi.alsa.AlsaMidiDeviceProvider.(AlsaMidiDeviceProvider.java:175)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:320)
at java.lang.Class.newInstance(Class.java:1154)
at gnu.classpath.ServiceProviderLoadingAction.run(ServiceProviderLoadingAction.java:140)
at java.security.AccessController.doPrivileged(AccessController.java:195)
at gnu.classpath.ServiceFactory$ServiceIterator.loadNextServiceProvider(ServiceFactory.java:525)
at gnu.classpath.ServiceFactory$ServiceIterator.(ServiceFactory.java:431)
at gnu.classpath.ServiceFactory.lookupProviders(ServiceFactory.java:301)
at gnu.classpath.ServiceFactory.lookupProviders(ServiceFactory.java:228)
at gnu.classpath.ServiceFactory.lookupProviders(ServiceFactory.java:326)
at javax.sound.midi.MidiSystem.getMidiDeviceInfo(MidiSystem.java:80)
at javax.sound.midi.MidiSystem.getSynthesizer(MidiSystem.java:177)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSynthesizer(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.init(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.(Unknown Source)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:320)
at java.lang.Class.newInstance(Class.java:1154)
at org.herac.tuxguitar.gui.util.ClassLoaderUtil.newInstance(Unknown Source)
at org.herac.tuxguitar.gui.util.ClassLoaderUtil.newInstance(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.initPlayer(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)

but the weird thing is that when i launched the jar file with the command u gave me it worked! ^^;


Back to Top
 
Julian
Post: Feb 3rd 2008 at 3:08 PM

Well, this is another error... this happends because you are not running tuxguitar with a "sun" JVM

i'm not really sure what JVM are you using, but i know it because you have the "classpath" libraries ( gnu.classpath.boot.library.path is a GNU Classpath property )

The problem without a sun JVM, is the java Sound Api what is not implemented on other JVMs ( well yes with tritonus library, but it use the jre1.4 specification and tuxguitar needs 1.5 )

however, with current CVS version, you can run tuxguitar ( without java sound api ) + tuxguitar-alsa with other JVM not from sun ( GCJ and IcedTea was successfully tested )

>but the weird thing is that when i launched the jar file with the command u gave me it worked! ^^;

Maybe you have 2 (or more) JVM installed in your system.
The "tuxguitar" script file look for $JAVA Or $JAVA_HOME env vars.. do you have one of them setted on your OS ??..
See this:
echo $JAVA
echo $JAVA_HOME

and
java -version


Back to Top