[javaCompiler-users] Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
Status: Beta
Brought to you by:
soapy
From: Stephen L. <lon...@gm...> - 2006-08-20 09:53:33
|
Hi, I've just taken a look at javaCompiler, and it certainly simplifies what could potentially be an extremely complex process! I tried it out an a game I've written in Java, that uses the java.awt.Graphics2D stuff fairly heavily, along with BufferedImage objects, but no AWT widgets or anything. After building a windows .exe from my jar file (thats classes, not source), I get the following error when running it: Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit(game-win.exe) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(game-win.exe) at java.awt.Window.<init>(game-win.exe) at java.awt.Frame.<init>(game-win.exe) at java.awt.Frame.<init>(game-win.exe) at com.longsteve.GameFrame.<init>(game-win.exe) at com.longsteve.Game(game-win.exe) Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:.\], parent= gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.lang.Class.forName(game-win.exe) at java.awt.Toolkit.getDefaultToolkit(game-win.exe) ...6 more Have I missed a dependency or something out? Any help would be greatly appreciated. I used "Managed AWT or Swing project" to start with. Cheers, Steve -- Stephen Longhurst steve at longsteve.com / longsteve at gmail.com |