Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Mac OSX SWT/AWT interoperating
Mac OSX SWT/AWT interoperating [message #444643] Mon, 18 October 2004 20:23 Go to next message
Jesse Eichar is currently offline Jesse EicharFriend
Messages: 29
Registered: July 2009
Junior Member
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 #444668 is a reply to message #444643] Wed, 20 October 2004 09:05 Go to previous messageGo to next message
Andre Weinand is currently offline Andre WeinandFriend
Messages: 66
Registered: July 2009
Member
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
Re: Mac OSX SWT/AWT interoperating [message #445102 is a reply to message #444668] Tue, 26 October 2004 09:04 Go to previous message
Andre Weinand is currently offline Andre WeinandFriend
Messages: 66
Registered: July 2009
Member
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
Previous Topic:how to prevent stretching of images in swt table
Next Topic:SashForm - disable resize?
Goto Forum:
  


Current Time: Wed Oct 28 06:21:18 GMT 2020

Powered by FUDForum. Page generated in 0.01564 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top