awt problem on darwin
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Sun May 26 17:32:00 GMT 2002
Andreas Tobler wrote:
> could anyone may explain what's going wrong here?
> I'd like to run a simple awt program on darwin. I have both Xservers
> running, the native OS-X and Xdarwin. On both the same error.
> Is it simply not possible right now due to the config?
Well, gcj's AWT support is still very much experimental/incomplete, so
right now you'd be pretty lucky to get it running without a bit of
hacking. I don't think you'll have much luck on Darwin without threads
because AWT is multi-threaded by (bad) design. The event dispatch thread
won't be able to start, so you should just get an exception while AWT is
trying to initialize.
I'm not sure if thats the error you're seeing, however - it looks like
an exception is thrown while trying to load/initialize the toolkit class
(which can be expected if you are static linking since the toolkit is
loaded with Class.forName) , but something goes wrong trying to print
the exception and stack trace. Does exception printing normally work on
Darwin?
regards
Bryce.
More information about the Java
mailing list