Mac OSX SWT/AWT interoperating [message #444643] |
Mon, 18 October 2004 16:23  |
Eclipse User |
|
|
|
Hello,
I've looked through the bug reports on the eclipse website about SWT and
AWT operating together. As far as I can determine it is not possible
yet. I just want to know if anyone knows any work arounds for the
current versions of eclipse. We're mostly developing for eclipse 3.1,
but work arounds for eclipse 3.0 are acceptable to me as well.
What I've done:
eclipse -vmargs -Djava.awt.headless=true
Created a product called UDIG.
As a test I include the following in the UDIGApplication class
(implements IPlatformRunnable)
if( System.getProperty("java.awt.headless").equals("true") )
Color c=Color.BLUE;
This causes the following exception to be raised
Apple AWT Java AWT Java VM was loaded on first thread -- can't start AWT.
I don't understand this. I've read that running headless makes AWT not
start up. I guess this is a fallacy.
If anyone knows anything new please let me know. This is a real problem
for UDIG. It is supposed to be platform independent, but it only works
on Linux and Windows right now.
Thank you all,
Jesse
|
|
|
|
Re: Mac OSX SWT/AWT interoperating [message #445102 is a reply to message #444668] |
Tue, 26 October 2004 05:04  |
Eclipse User |
|
|
|
On 20.10.2004 11:05 Uhr, in article BD9BF6F7.C3A0%Andre_Weinand@oti.com,
"Andre Weinand" <Andre_Weinand@oti.com> wrote:
> On 18.10.2004 22:23 Uhr, in article cl186a$nud$1@eclipse.org, "Jesse Eichar"
> <jeichar@refractions.net> wrote:
>
>> I've looked through the bug reports on the eclipse website about SWT and
>> AWT operating together. As far as I can determine it is not possible
>> yet. I just want to know if anyone knows any work arounds for the
>> current versions of eclipse. We're mostly developing for eclipse 3.1,
>> but work arounds for eclipse 3.0 are acceptable to me as well.
>>
>> What I've done:
>> eclipse -vmargs -Djava.awt.headless=true
>>
>> Created a product called UDIG.
>>
>> As a test I include the following in the UDIGApplication class
>> (implements IPlatformRunnable)
>>
>> if( System.getProperty("java.awt.headless").equals("true") )
>> Color c=Color.BLUE;
>>
>> This causes the following exception to be raised
>> Apple AWT Java AWT Java VM was loaded on first thread -- can't start AWT.
>>
>>
>> I don't understand this. I've read that running headless makes AWT not
>> start up. I guess this is a fallacy.
>>
>> If anyone knows anything new please let me know. This is a real problem
>> for UDIG. It is supposed to be platform independent, but it only works
>> on Linux and Windows right now.
>>
>> Thank you all,
>>
>> Jesse
>
>
> I forwarded this to someone in the know...
>
> --andre
>
It's a bug in the platform and I'll post a radar bug.
--andre
|
|
|
Powered by
FUDForum. Page generated in 0.07955 seconds