Re: Bug#309072: azureus: crashes on startup. An unexpected error has been detected by HotSpot VM:SIGSEGV
Am Samstag 14 Mai 2005 12:58 schrieben Sie:
> Try disabling micro PnP suport. Think you have about a minute to
> get to the options, turn off the pluging, save and exit.
No, I said in the subject that azureus is crashing on startup, so it's
not an issue with the uPnP plugin in azureus. I also think that it
isn't installed by default.
But I could do some debugging. I found out, that I could start it with
java -Xrs -Xdebug -jar /usr/share/java/Azureus2.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-pi-gtk-3116 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
and so on (I can post the other lines too, but I think the first line
gives the important error.
In my path there was no /usr/lib/j2sdk1.5-sun/bin:/usr/share/java
And `echo $LD_LIBRARY_PATH` returned nothing.
I added these lines into my ~/.bashrc:
# JAVA SDK
PATH=/usr/local/bin:~/bin:
$PATH:/usr/lib/j2sdk1.5-sun/bin:/usr/share/java
JDK_HOME=/usr/lib/j2sdk1.5-sun/
JAVA_HOME=/usr/lib/j2sdk1.5-sun/
export PATH
export JDK_HOME
export JAVA_HOME
# Trolltec qt 3.3 20040907
if [ -d /usr/share/qt3 ]; then
QTDIR=/usr/share/qt3
export QTDIR
fi
PATH=$QTDIR/bin:/usr/local/bin:$PATH
MANPATH=$QTDIR/doc/man:/usr/share/java:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:/usr/share/java:
$LD_LIBRARY_PATH
export PATH MANPATH LD_LIBRARY_PATH
And now I got this environem,ent:
$ echo $PATH
/usr/share/qt3/bin:/usr/local/bin:/usr/local/bin:/home/gerhard/bin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/games:/usr/lib/j2sdk1.5-sun/bin:/usr/share/java
$ echo $LD_LIBRARY_PATH
/usr/share/qt3/lib:/usr/local/lib:/usr/share/java:
But the error persists. It's the same message.
I linked the swt-pi-gtk-3.1.jar to swt-pi-gtk-3116.jar
$ ls -l /usr/share/java/swt-pi-gtk-3*
lrwxrwxrwx 1 root root 34 2005-05-14
15:00 /usr/share/java/swt-pi-gtk-3116.jar
-> /usr/share/java/swt-pi-gtk-3.1.jar
-rw-r--r-- 1 root root 89682 2005-05-07
20:59 /usr/share/java/swt-pi-gtk-3.1.jar
and
$ ls -l /usr/lib/j2sdk1.5-sun/lib/swt-pi-gtk-3*
lrwxrwxrwx 1 root root 34 2005-05-14
15:22 /usr/lib/j2sdk1.5-sun/lib/swt-pi-gtk-3116.jar
-> /usr/share/java/swt-pi-gtk-3.1.jar
but that didn't help. I get still
$ java -Xrs -Xdebug -jar /usr/share/java/Azureus2.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-pi-gtk-3116 in java.library.path
and jdb gives this error:
$ jdb java -Xrs -Xdebug -jar /usr/share/java/Azureus2.jar
Initializing jdb ...
> run
run java -Xrs -Xdebug -jar /usr/share/java/Azureus2.jar
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started:
Exception occurred: java.lang.ClassNotFoundException
(uncaught)"thread=main", java.net.URLClassLoader$1.run(), line=200
bci=72
main[1]
I hope that helps to figure out where the mistake is in my java setup.
This might no longer be an azureus issue, and hopefully we can close
this soon.
Should I file then a bug against java-package, or is it only because of
misconfiguration. I expected this should run out-of-the-box.
regards
Gerhard Gaußling
Reply to: