views:

98

answers:

1

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
Haven't tired the first option, but the second works like a charm. Thank you!
PiPeep