Bug#568940: azureus: Does not start, complains about missing, swt libs
gregor herrmann wrote: [...] What I don't understand is why the .jar is in /usr/lib/java/ and not in /usr/share/java in the first place. It's put there explicitly by debian/libswt-gtk-3.5-java.install. Installing it to /usr/share/java and adjusting debian/libswt-gtk-3.5-java.links would save one symlink and maybe also fix the bug? Hi It is intentionally installed in /usr/lib/java; the java side of swt stores C pointers in either the java type int or long depending on the platform and the native function signature differs because of this on different platforms. This is all part of the swt internals and is not exposed outside swt, which is why swt.jar is one of the few jar files (the only?) to go in /usr/lib. ~Niels signature.asc Description: OpenPGP digital signature
Bug#568940: azureus: Does not start, complains about missing swt libs
On Tue, 23 Feb 2010 22:19:28 +0100, gregor herrmann wrote: That's interesting. The package does contain the link. What looks bit suspicious is the combination: -rw-r--r-- root/root 1544134 2010-02-23 21:44 ./usr/lib/java/swt-gtk-3.5.1.jar lrwxrwxrwx root/root 0 2010-02-23 21:45 ./usr/share/java/swt.jar - swt-gtk-3.5.1.jar lrwxrwxrwx root/root 0 2010-02-23 21:45 ./usr/share/java/swt-gtk-3.5.1.jar - ../../lib/java/swt-gtk-3.5.1.jar Let's try in a chroot: belanna:/# ls -l /usr/share/java ls: cannot access /usr/share/java: No such file or directory belanna:/# apt-get install libswt-gtk-3.5-java [..] belanna:/# ls -l /usr/share/java total 0 lrwxrwxrwx 1 root root 32 Mar 2 21:14 swt-gtk-3.5.1.jar - ../../lib/java/swt-gtk-3.5.1.jar lrwxrwxrwx 1 root root 17 Mar 2 21:14 swt.jar - swt-gtk-3.5.1.jar Hm, everything there. Let's try something different: belanna:/# ls -l /usr/share/java ls: cannot access /usr/share/java: No such file or directory belanna:/# apt-get install libswt3.4-gtk-java [..] belanna:/# ls -l /usr/share/java total 0 belanna:/# apt-get install libswt-gtk-3.5-java [..] belanna:/# ls -l /usr/share/java total 0 lrwxrwxrwx 1 root root 32 Mar 2 21:24 swt-gtk-3.5.1.jar - ../../lib/java/swt-gtk-3.5.1.jar lrwxrwxrwx 1 root root 17 Mar 2 21:24 swt.jar - swt-gtk-3.5.1.jar belanna:/# apt-get remove libswt-gtk-3.5-java [..] belanna:/# apt-get install libswt3.2-gtk-java [..] belanna:/# ls -l /usr/share/java total 0 belanna:/# apt-get install libswt-gtk-3.5-java [..] belanna:/# ls -l /usr/share/java total 0 lrwxrwxrwx 1 root root 32 Mar 2 21:28 swt-gtk-3.5.1.jar - ../../lib/java/swt-gtk-3.5.1.jar lrwxrwxrwx 1 root root 17 Mar 2 21:28 swt.jar - swt-gtk-3.5.1.jar Hm, still everything there. The only good thing is that this happend to me too when I updated tuxguitar :) Last try: belanna:/# aptitude -t stable install tuxguitar [..] update-alternatives: using /usr/share/java/swt-gtk-3.4.jar to provide /usr/share/java/swt.jar (swt.jar) in auto mode. [..] belanna:/# dpkg -l libswt* | grep ^ii ii libswt-cairo-gtk-3.4-jni3.4-1 Standard Widget Toolkit for GTK+ Cairo JNI library ii libswt-gtk-3.4-java 3.4-1 Standard Widget Toolkit for GTK+ Java library ii libswt-gtk-3.4-jni 3.4-1 Standard Widget Toolkit for GTK+ JNI library ii libswt-mozilla-gtk-3.4-jni 3.4-1 Standard Widget Toolkit for GTK+ Mozilla JNI libra belanna:/# ls -l /usr/share/java | grep swt -rw-r--r-- 1 root root 1405387 Jul 11 2008 swt-gtk-3.4.jar lrwxrwxrwx 1 root root 25 Mar 2 21:53 swt.jar - /etc/alternatives/swt.jar belanna:/# aptitude install tuxguitar [..] belanna:/# dpkg -l libswt* | grep ^ii ii libswt-cairo-gtk-3.5-jni3.5.1-2Standard Widget Toolkit for GTK+ Cairo JNI l ii libswt-gtk-3.5-java 3.5.1-2Standard Widget Toolkit for GTK+ Java librar ii libswt-gtk-3.5-jni 3.5.1-2Standard Widget Toolkit for GTK+ JNI library ii libswt-mozilla-gtk-3.5-jni 3.5.1-2Standard Widget Toolkit for GTK+ Mozilla JNI belanna:/# ls -l /usr/share/java | grep swt lrwxrwxrwx 1 root root 32 Mar 2 21:55 swt-gtk-3.5.1.jar - ../../lib/java/swt-gtk-3.5.1.jar Ha! The symlink is now missing. What I don't understand is why I get a symlink swt.jar - /etc/alternatives/swt.jar with aptitude -t stable install tuxguitar but not with apt-get install libswt3.4-gtk-java Enough for today. Cheers, gregor -- .''`. http://info.comodo.priv.at/ -- GPG Key IDs: 0x8649AA06, 0x00F3CFE4 : :' : Debian GNU/Linux user, admin, developer - http://www.debian.org/ `. `' Member of VIBE!AT SPI, fellow of Free Software Foundation Europe `-NP: Cat Stevens: How Many Times signature.asc Description: Digital signature
Bug#568940: azureus: Does not start, complains about missing swt libs
On Fri, 12 Feb 2010 22:40:33 +0100, Stephan Windmüller wrote: Somehow the symbolic link /usr/share/java/swt.jar - swt-gtk-3.5.1.jar has vanished or was not created in the first place. However, reinstalling the package libswt-gtk-3.5-java fixed this. That's interesting. The package does contain the link. What looks bit suspicious is the combination: -rw-r--r-- root/root 1544134 2010-02-23 21:44 ./usr/lib/java/swt-gtk-3.5.1.jar lrwxrwxrwx root/root 0 2010-02-23 21:45 ./usr/share/java/swt.jar - swt-gtk-3.5.1.jar lrwxrwxrwx root/root 0 2010-02-23 21:45 ./usr/share/java/swt-gtk-3.5.1.jar - ../../lib/java/swt-gtk-3.5.1.jar Maybe there's a race condition when the two symlinks are unpacked? What I don't understand is why the .jar is in /usr/lib/java/ and not in /usr/share/java in the first place. It's put there explicitly by debian/libswt-gtk-3.5-java.install. Installing it to /usr/share/java and adjusting debian/libswt-gtk-3.5-java.links would save one symlink and maybe also fix the bug? Cheers, gregor -- .''`. http://info.comodo.priv.at/ -- GPG Key IDs: 0x8649AA06, 0x00F3CFE4 : :' : Debian GNU/Linux user, admin, developer - http://www.debian.org/ `. `' Member of VIBE!AT SPI, fellow of Free Software Foundation Europe `-NP: Joan Baez: Don't cry for me Argentina signature.asc Description: Digital signature
Bug#568940: azureus: Does not start, complains about missing swt libs
Problem is fixed. Somehow the symbolic link /usr/share/java/swt.jar - swt-gtk-3.5.1.jar has vanished or was not created in the first place. However, reinstalling the package libswt-gtk-3.5-java fixed this. This bug may be closed. - Stephan -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#568940: azureus: Does not start, complains about missing swt libs
Package: azureus Version: 4.3.0.6-1 Severity: grave Justification: renders package unusable When I start azureus, I get this error: - [warning] /usr/bin/azureus: Unable to locate swt in /usr/share/java file:/usr/lib/jni/ ; file:/usr/lib/java/ ; file:/usr/share/java/Azureus2.jar ; file:/usr/share/java/log4j-1.2-1.2.15.jar ; file:/usr/share/java/commons-cli-1.2.jar ; file:/home/windy/ java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.gudy.azureus2.ui.common.Main.directLaunch(Main.java:229) at org.gudy.azureus2.ui.common.Main.main(Main.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.aelitis.azureus.launcher.MainExecutor$1.run(MainExecutor.java:37) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Shell at org.gudy.azureus2.ui.swt.mainwindow.Initializer.init(Initializer.java:111) at org.gudy.azureus2.ui.swt.Main.init(Main.java:88) at org.gudy.azureus2.ui.swt.Main.main(Main.java:255) ... 12 more Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Shell at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at com.aelitis.azureus.launcher.classloading.PrimaryClassloader.loadClass(PrimaryClassloader.java:103) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 15 more Start fails: com.aelitis.azureus.core.AzureusCoreException: Azureus core already instantiated at com.aelitis.azureus.core.impl.AzureusCoreImpl.create(AzureusCoreImpl.java:120) at com.aelitis.azureus.core.AzureusCoreFactory.create(AzureusCoreFactory.java:46) at org.gudy.azureus2.ui.common.Main.main(Main.java:160) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.aelitis.azureus.launcher.MainExecutor$1.run(MainExecutor.java:37) at java.lang.Thread.run(Thread.java:619) - After setting the classpath in /usr/bin/azureus manually to JAVA_CLASSPATH=/usr/lib/jni:/usr/lib/java:/usr/lib/java/swt-gtk-3.5.1.jar all works fine again. My $JAVA_HOME is /usr/lib/jvm/java-6-sun -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (900, 'testing'), (800, 'unstable') Architecture: i386 (x86_64) Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages azureus depends on: ii java-wrappers 0.1.15 wrappers for java executables ii libcommons-cli-java 1.2-2API for working with the command l ii liblog4j1.2-java1.2.15-7 Logging library for java ii libswt-gtk-3.5-java 3.5.1-2 Standard Widget Toolkit for GTK+ J ii openjdk-6-jre 6b17~pre3-1 OpenJDK Java runtime, using Hotspo ii sun-java5-jre 1.5.0-17-0.1 Sun Java(TM) Runtime Environment ( ii sun-java6-jre 6-16-1 Sun Java(TM) Runtime Environment ( Versions of packages azureus recommends: ii vuze 4.3.0.6-1 Multimedia BitTorrent client azureus suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org