I am working on an embedded Linux device that has only qt. For some reason, Java decides to use gnu.java.awt.peer.gtk.GtkToolkit. How can I force it to use gnu.java.awt.peer.qt.QtToolkit instead (or change the default behavior)?
+3
A:
the api suggests setting the system property awt.toolkit,
java -Dawt.toolkit=gnu.java.awt.peer.qt.QtToolkit my.Program
or
System.setProperty ("awt.toolkit", "gnu.java.awt.peer.qt.QtToolkit");
disown
2010-01-06 20:10:37
Haven't tired the first option, but the second works like a charm. Thank you!
PiPeep
2010-01-06 20:20:13