Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Converting AWT Image to SWT Image on a Mac
Converting AWT Image to SWT Image on a Mac [message #466235] Thu, 05 January 2006 07:31 Go to next message
Mark McLaren is currently offline Mark McLarenFriend
Messages: 45
Registered: July 2009
Member
I'm trying to run Snippet156 on OS X 10.3.9 (Convert between SWT and AWT
images).

I get this error:
Exception in thread "main" java.lang.InternalError: Can't start the AWT
because Java was started on the first thread. Make sure
StartOnFirstThread is not specified in your application's Info.plist or on
the command line

(I am running with -Djava.awt.headless=true)

Anyone seen this?

Thanks
Re: Converting AWT Image to SWT Image on a Mac [message #466238 is a reply to message #466235] Thu, 05 January 2006 10:06 Go to previous message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
Due to a bug in MacOSX -Djava.awt.headless=true has no effect at all
prior to OSX 10.4, you will have to upgrade to Tiger.

With Java 1.5 on MacOSX 10.4 or higher SWT is recognised and that system
property is set automaticly. (Java 1.4 on 10.4 still reqires you to set
the system property manually however)


Yves


Mark McLaren wrote:
> I'm trying to run Snippet156 on OS X 10.3.9 (Convert between SWT and AWT
> images).
>
> I get this error:
> Exception in thread "main" java.lang.InternalError: Can't start the AWT
> because Java was started on the first thread. Make sure
> StartOnFirstThread is not specified in your application's Info.plist or
> on the command line
>
> (I am running with -Djava.awt.headless=true)
>
> Anyone seen this?
>
> Thanks
>
>
>
>
>
Previous Topic:SWT InputBox
Next Topic:Problem making a view scrollable
Goto Forum:
  


Current Time: Thu Dec 18 12:29:35 GMT 2014

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

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