derby007
March 19th, 2007, 02:28 PM
I'm getting the following error when i try and run my Java Application from the command line. Does anybody know how i might fix it ?
I tried setting different LooknFeel's but I still get the same error....
Is the libgcj.so.7 library/file causing me a problem?
Note: its a simple application, with just a few buttons, with standard layouts, & no fancy outside libraries/jars.
:confused:
>>>java -jar SBWithMain.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7)
at java.awt.EventQueue.invokeLater(libgcj.so.7)
at smallbyteswithmain.Main.main(Main.java:35)
Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit
at java.lang.Class.forName(libgcj.so.7)
at java.lang.Class.forName(libgcj.so.7)
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7)
...2 more
I tried setting different LooknFeel's but I still get the same error....
Is the libgcj.so.7 library/file causing me a problem?
Note: its a simple application, with just a few buttons, with standard layouts, & no fancy outside libraries/jars.
:confused:
>>>java -jar SBWithMain.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7)
at java.awt.EventQueue.invokeLater(libgcj.so.7)
at smallbyteswithmain.Main.main(Main.java:35)
Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit
at java.lang.Class.forName(libgcj.so.7)
at java.lang.Class.forName(libgcj.so.7)
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7)
...2 more