symlink /usr/share/java/swt.jar missing

Bug #558672 reported by billy shears
134
This bug affects 44 people
Affects Status Importance Assigned to Milestone
swt-gtk (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

after upgrading from ubuntu 9.10 to 10.04 beta tuxguitar wouldn't launch anymore, instead it was crashing with this error message:

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Control
at org.herac.tuxguitar.gui.TGMain.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Control
at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 21)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 66)
... 1 more

The problem was that the symlink /usr/share/java/swt.jar pointing to swt-gtk-3.5.1.jar was missing, creating it (or reinstalling the libswt-gtk-3.5 packages) fixed the problem.
This must be the same bug affecting the debian package:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568940

Related branches

Revision history for this message
Micah Gersten (micahg) wrote :

Confirmed by the duplicate bug submission.

Changed in swt-gtk (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
robertneville777 (robertneville777) wrote :

Yup, had the exact same problem. Confirmed.

Revision history for this message
Thiago Lechuga (tpaulistah) wrote :

Reinstalling libswt-gtk-3.5 packages solved the problem here.

Revision history for this message
Henning (henning-wimahh) wrote :

Same problem after upgrading from 9.10 (stable) to 10.4 stable.
Reinstalling libswt-gtk-3.5 packages solved the problem here.

Revision history for this message
niowfi (niowfi) wrote :

Thank you Henning,
Reinstalling libswt-gtk-3.5 solved the problem for me too.

Revision history for this message
Dedmon (edmond-veale) wrote :

Re-installing libswt-gtk-3.5 resolved it for me too, Thanks.

Revision history for this message
yajo (yajodj) wrote :

Same problem for me, and same solution worked too. Thanks ;)

Revision history for this message
andres.ordonez (afol-1) wrote :

Same here

Revision history for this message
Hadrien Titeux (hadware) wrote :

Yup, same problem same fix on 2 computers with Unbuntu 10.04 on them :P

Revision history for this message
irmas (irmas25) wrote :

thanks a lot your solution worked for me too :)

Revision history for this message
Dan Rollo (bhamail) wrote :

I had this issue with vuze/azureus after upgrading to Ubuntu 10.04. (see bug duplicates).
FWIW, on other bug reports for amd64 someone said the re-install of swt didn't work for them.
I re-installed both libswt-gtk-3.5-java and libswt-gtk-3.5-jni (both v3.5.1) and it appears to have fixed the problem.

Revision history for this message
Ravi Resck (pancadarock) wrote :

Same problem here.

Revision history for this message
Darxus (darxus) wrote :

I also just upgraded from Karmic to Lucid (64 bit) and had the same problem. This command also solves it:

sudo ln -s /usr/share/java/swt-gtk-3.5.1.jar /usr/share/java/swt.jar

Revision history for this message
Goksu (gun-goksu) wrote :

Same problem after upgrading from 9.10 (stable) to 10.4 stable.
Reinstalling libswt-gtk-3.5 packages solved the problem here too.
thanks for the help.

Revision history for this message
Adrian Perez (adrianperez-deb) wrote : Re: [Bug 558672] Re: symlink /usr/share/java/swt.jar missing

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/21/2010 06:09 AM, Goksu wrote:
> Same problem after upgrading from 9.10 (stable) to 10.4 stable.
> Reinstalling libswt-gtk-3.5 packages solved the problem here too.
> thanks for the help.
>
I hope you can tell me if this is still applicable, and wether it
happens only when you upgrade a dependent package (such as azureus), or
if you install latest swt by itself. I'm still having problems
reproducing this bug so far, and now tweaking the new upload i'm
preparing of both swt and azureus. Please let me know, and sorry about
the timing issue.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxfCvAACgkQmXMNXIqaMITTUgCfSOLk5pHZZZJURp0Jgq/imEDf
G0wAoIIyuC/5YLIeGs7DHF+wu3ztRZMt
=P3G1
-----END PGP SIGNATURE-----

Revision history for this message
Antonio J. de Oliveira (ajoliveira) wrote :

#13 solves the problem on lucid amd64. Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package swt-gtk - 3.5.1+versionbump-5ubuntu1

---------------
swt-gtk (3.5.1+versionbump-5ubuntu1) maverick; urgency=low

  * Merge from Debian (LP: #640567, #558672, #531754), remaining changes:
    + Bump version number to overcome historical eclipse binaries

swt-gtk (3.5.1-5) unstable; urgency=low

  * debian/patches: Move 02-bp-accessible-object to common/ directory.
  * debian/copyright: More updates.

swt-gtk (3.5.1-4) unstable; urgency=low

  * debian/patches:
    - Refresh arch64.diff. FTBFS on x86_64 CPUs.
    - Rename bp-accessible-object patch.
  * debian/rules:
    - Support powerpcspe builds. Closes: #597056.
      Thanks: Sebastian Andrzej Siewior.

swt-gtk (3.5.1-3) unstable; urgency=low

  * Acknowledge AWL-forced NMU. Thanks: Ahmed El-Mahmoudy.
  * debian/control: Update maintainer e-mail address.
  * debian/copyright: Minor updates.
  * debian/rules: Support SH4 builds. Closes: #593178.
    Thanks: Nobuhiro Iwamatsu.
  * debian/patches:
    - Backport AccessibleObject.getAccessibleObject() upstream
      patch. Closes: #563046.
  * Partly revert removal of alternatives scripts.
    Closes: #594641, #568940. Thanks: Ahmed El-Mahmoudy.

swt-gtk (3.5.1-2.1) unstable; urgency=low

  * NMU
  * debian/control:
    + Replace default-jdk-builddep with default-jdk, gcj-native-helper in B-D
    + Bumped Standards-Version to 3.9.1
  * debian/rules:
    + Call dh_xulrunner to add proper xulrunner dependency to
      libswt-mozilla-gtk-<version>-jni (Closes: #587643)
    + Fix from Ubuntu: Don't set DEB_MAKE_INVOKE and pass. AWT_LIB_PATH to
      Makefile. This used to be overwritten by makefile- vars.mk in Lucid
      anyway, and so it was ignored. It is not overwritten now, and causes the
      package to FTBFS. Instead, export AWT_LIB_PATH before calling the
      makefile (Closes: #577360)
  * Explicitly set source format to 1.0
 -- ALEFHAHMEEMDAL ALEFLAMMEEMHAHMEEMWAWDALYEH (Ahmed El-Mahmoudy) <email address hidden> Mon, 20 Sep 2010 16:10:33 +0200

Changed in swt-gtk (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.