Re: java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
Hi,
I see 3 possible solutions:
1. add -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D to the command line
(not sure if it's related but it shouldn't hurt ;-) ).
2. call JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun java -cp ... (case by case)
3. or make sure that Sun's Java is your default Java by using the
/usr/sbin/update-java-alternatives command.
/usr/sbin/update-java-alternatives --set java-1.5.0-sun should do the trick.
Hope this helps,
Eric
--
You don't need to CC me on debian-java, debian-mentors and
pkg-java-maintainers.
Please CC me on other Debian lists.
Reply to: