Skip to Content

develCuy's blog

by Fernando Paredes García


How to fix: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Layout (Debian/lenny)

Finally I got some hours to rest and play my guitar. Then I opened my xterm and tried to run tuxguitar(to practice: ysellamaperu.mid from "El Rincón Musical Peruano") but.... There is a terrible and poor in expression "bug":

Exception in thread "main"
java.lang.NoClassDefFoundError:
org/eclipse/swt/widgets/Layout

Then I googled, tried with strace, and remembered some recent dpkg problems with "ln -s" (or dinamic links) The way i fixed this is:

# sudo rm /etc/alternatives/swt.jar
# sudo ln -s /usr/share/java/swt-gtk-3.2.2.jar /etc/alternatives/swt.jar

And please let me play my guitar in peace!!!

Blesings :D


Reply

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h2> <hr> <sup> <i> <b> <pre> <img>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.