View Full Version : SBQueue problem
SbQueue problem
ian@tqft:/media/hde1/home/ian/sb$ java -jar SBQueue.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7)
...
Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit
at java.lang.Class.forName(libgcj.so.7)
at java.lang.Class.forName(libgcj.so.7)
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7)
...16 more
Ubuntu Dapper, kernel 2.6.15-27-386, java jre is 1.5.?
Version 1.5.0 (build 1.5.0_06-b05) - latest from Dapper repository
aasmunds
11-28-2006, 12:27 PM
Install the Java Runtime Environment from Sun. The one included with Ubuntu doesn't have a GUI toolkit.
apt-get install sun-java5-jre
It was the Sun jre 5.0 I installed - but your post sent me searching - I found this via synaptic:
libgcj7-awt
Not part of the package or a dependency.
It runs now.
No all I have to do is work out how to use it properly.
Thanks.
But died.
Stopped sb
Changed the sclient.conf for the server to localhost
Had the gui up.
sb2.5 tried to report
Got this:
ian@tqft:/media/hde1/home/ian/sb$ java -jar SBQueue.jar -g
Segmentation fault
Ok I probably haven't set it up right so are there detailed instructions?
Yes I have read the readme.txt do I need to do so again?
Ken_g6[TA]
12-04-2006, 11:12 AM
"Segmentation fault" comes from the JRE, not my app. "which java" are you using? (Run that command in quotes.)
You could also try, e.g. "java -jar SBQueue.jar -s -t", which won't start the GUI.
Already latest jre
ian@tqft:~$ sudo apt-get install sun-java5-jre
Reading package lists... Done
Building dependency tree... Done
sun-java5-jre is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Not very useful
ian@tqft:~$ which java
/usr/bin/java
Is it distro/packaging related?
ian@tqft:~$ java -jar SBQueue.jar -s -t
Failed to load Main-Class manifest attribute from SBQueue.jar
ian@tqft:~$ uname -a
Linux tqft 2.6.15.7-ubuntu1-tqft #1 SMP PREEMPT Mon Nov 20 20:02:49 EST 2006 i686 GNU/Linux
Is a standard Ubuntu-smp kernel - no patches - just compiled locally
Ken_g6[TA]
12-05-2006, 10:01 AM
It's really weird that "java -jar SBQueue.jar -g" would bring up the GUI, but "java -jar SBQueue.jar -s -t" would say "Failed to load Main-Class manifest attribute from SBQueue.jar". If the second command did, so should the first.
I still think that's the wrong copy of Java. When I say "which java" on my old Red Hat 9 machine, it says "/usr/java/j2sdk1.4.1_01/bin/java". You might see if there's anything in /usr/java. If not, try:
locate java | grep "/java$"
If that doesn't work, you might have to run updatedb first. If it does, see if anything besides /usr/bin/java pops up.
Lets play chase the sym link
usr/bin/java/jvm
usr/lib/jvm/java-1.5.0-sun/jre/bin/java_vm
usr/bin/java/java
/usr/lib/jvm/java-gcj/jre/bin/java
ian@tqft:/usr/lib/jvm$ ls
java-1.4.2-gcj-4.1-1.4.2.0 java-1.5.0-sun java-1.5.0-sun-1.5.0.06 java-gcj
No wonder it is confused
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.