 |
 |
 |
 |
|
 |
 |
Problems
Build from CVS - Build OK, but crashes on start
|
|
| Author |
Message |
|
Stoneface
|
|
Post:
Oct 20th 2007 at 11:16 AM |
|
|
Hi,
I running Debian unstable and have the official Debian package installed.
First I had problems with it, but after the update-alternative trick :
http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg388635.html Tuxguitar 0.9.1 runs well, but with no .gtp support.
I've read, that the CVS version can handles .gtp files, so I tried to build the CVS Version with this howto:
http://www.tuxguitar.com.ar/forum_posts.html?fid=5&tid=223&view=NEW
After editing the build.properties with the new path for swt:
lib.swt.jni=/usr/lib/jni
lib.swt.jar=/etc/alternatives/swt.jar
everything seemes to be fine, I get this messages, when finishing the build with ant:
Stoneface@neotux:~/TuxGuitar/TuxGuitar-cvs-src$ ant
Buildfile: build.xml
init:
build:
[echo] +--------------------------------------------------------------------+
[echo] | B U I L D I N G T U X G U I T A R |
[echo] +--------------------------------------------------------------------+
build:
[echo] +--------------------------------------------------------------------+
[echo] | P A C K A G I N G T U X G U I T A R |
[echo] +--------------------------------------------------------------------+
[jar] Building jar: /home/Stoneface/TuxGuitar/TuxGuitar-cvs-src/tuxguitar.jar
package:
all:
BUILD SUCCESSFUL
Total time: 6 seconds
But when I try to launch tuxguitar, the splash screen appears but tuxguitar crashes immediately and in the console I get this Java messages:
Stoneface@neotux:~/TuxGuitar/TuxGuitar-cvs-src$ ./tuxguitar
/home/Stoneface/TuxGuitar/TuxGuitar-cvs-src/./share/skins/blue_serious/layout_compact.png: not found
java.net.MalformedURLException: no protocol: /home/Stoneface/tuxguitar/boil_'em_cabbage_down.gp4
at java.net.URL.(URL.java:567)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)
at org.herac.tuxguitar.gui.helper.FileHistory.loadHistory(Unknown Source)
at org.herac.tuxguitar.gui.helper.FileHistory.(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TGMain.main(Unknown Source)
Exception in thread "main" org.eclipse.swt.SWTException: Unable to load graphics library [Cairo is required] (java.lang.NoClassDefFoundError)
at org.eclipse.swt.SWT.error(SWT.java:3374)
at org.eclipse.swt.graphics.Device.checkCairo(Device.java:172)
at org.eclipse.swt.graphics.Path.(Path.java:64)
at org.herac.tuxguitar.gui.editors.TGPainter.initPath(Unknown Source)
at org.herac.tuxguitar.gui.editors.tab.layout.ViewLayout.makeOldScoreNoteImage(Unknown Source)
at org.herac.tuxguitar.gui.editors.tab.layout.ViewLayout.initScoreNotes(Unknown Source)
at org.herac.tuxguitar.gui.editors.tab.layout.ViewLayout.reloadStyles(Unknown Source)
at org.herac.tuxguitar.gui.editors.tab.layout.ViewLayout.(Unknown Source)
at org.herac.tuxguitar.gui.editors.tab.layout.PageViewLayout.(Unknown Source)
at org.herac.tuxguitar.gui.editors.tab.Tablature.reloadViewLayout(Unknown Source)
at org.herac.tuxguitar.gui.editors.TablatureEditor.showTablature(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.createComposites(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TGMain.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.eclipse.swt.graphics.Device.checkCairo(Device.java:169)
... 12 more
Stoneface@neotux:~/TuxGuitar/TuxGuitar-cvs-src$
Does anybody have an idea to solve this problem ?
Best regards,
Stoneface
|
|
| Back to Top |
| |
|
Julian
|
|
Post:
Oct 20th 2007 at 11:32 AM |
|
|
Hi,
there are 2 errors here..
the first "java.net.MalformedURLException: no protocol:...."
is caused because a conflict with the old ( 0.9 ) config..
remove ~/.tuxguitar/ to fix it.. ( but that's not the crash cause ).
the second.. "Exception in thread "main" org.eclipse.swt.SWTException: Unable to load graphics library [Cairo is required]...."
is the crash problem.
"libcairo2" is required.. do you have installed it ??
what version of swt do you have installed ???
|
|
| Back to Top |
| |
|
Stoneface
|
|
Post:
Oct 20th 2007 at 11:56 AM |
|
|
Hi,
thanks Julian, with your help I've found the problem...
what version of swt do you have installed ???
I searched for the swt version and noticed, that my swt installation had some dependency problems...
I installed libswt3.2-gtk-java and libswt3.2-gtk-jni one more time and now tuxguitar starts correctly...
Great, thank you !
|
|
| Back to Top |
| |
Post Reply
|
 |
 |
 |
 |
|