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 02:31 Go to next message
Mark McLaren is currently offline Mark McLaren
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 05:06 Go to previous message
Yves Harms is currently offline Yves Harms
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: Wed Jul 23 22:28:48 EDT 2014

Powered by FUDForum. Page generated in 0.02269 seconds