Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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 02 09:24:06 EDT 2025

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

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

Back to the top