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" (like 99% of "yankee" code):

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

Trackback URL for this post:

http://www.develcuy.com/en/trackback/23
Posted In

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
  ___   _   _         __        __   __   _   
|_ _| | \ | | __ __ \ \ / / / _| | |_
| | | \| | \ \/ / \ \ /\ / / | |_ | __|
| | | |\ | > < \ V V / | _| | |_
|___| |_| \_| /_/\_\ \_/\_/ |_| \__|
Enter the code depicted in ASCII art style.