GCJ Swing/AWT working on OS X -- article
Bryce McKinlay
mckinlay@redhat.com
Wed Jul 21 23:11:00 GMT 2004
John Gabriele wrote:
>> john$ ./bar
> Exception in thread "main" java.awt.AWTError: Cannot load AWT
> toolkit: gnu.java.awt.peer.gtk.GtkToolkit
> <<No stacktrace available>>
> Caused by: java.lang.ClassNotFoundException:
> gnu.java.awt.peer.gtk.GtkToolkit not found in [file:./, core:/]
> <<No stacktrace available>>
>> john$ export CLASSPATH=/usr/local/gcc_cvs/share/java/libgcj-3.5.0.jar
>> john$ ./bar
> false
> true
> {i.e. it starts up and runs as it should.}
Odd. For some reason the compiled versions of the Gtk AWT peer classes
couldn't be found. By putting them on the classpath, you'll be running
interpreted bytecode, not natively compiled code. This will reduce
performance.
Regards
Bryce
More information about the Java
mailing list