This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: awt problem on darwin


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]