Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [Mac] Problems running SWT Application from Eclipse
[Mac] Problems running SWT Application from Eclipse [message #443802] Thu, 30 September 2004 21:06 Go to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Hi,

I was finally able to run Eclipse on a G5 Mac. I wanted to start my SWT
Application via "Run..." and it showed. But then, pressing any GUI element
(Menu, Tree, ...) the Application freezed and it took a minute or too
until I was able to close the Window.

Now, my theorie is that since SWT on Mac requires the java_swt bridge to
run, its not possible to have a SWT application run from within Eclipse?

Anyone with experiences on launching SWT Apps from Eclipse on Mac?

Ben
Re: [Mac] Problems running SWT Application from Eclipse [message #443809 is a reply to message #443802] Fri, 01 October 2004 08:41 Go to previous message
Andre Weinand is currently offline Andre WeinandFriend
Messages: 66
Registered: July 2009
Member
On 30.9.2004 23:06 Uhr, in article cjhsgj$kv0$1@eclipse.org, "Benjamin
Pasero" <bpasero@rssowl.org> wrote:

> Hi,
>
> I was finally able to run Eclipse on a G5 Mac. I wanted to start my SWT
> Application via "Run..." and it showed. But then, pressing any GUI element
> (Menu, Tree, ...) the Application freezed and it took a minute or too
> until I was able to close the Window.
>
> Now, my theorie is that since SWT on Mac requires the java_swt bridge to
> run, its not possible to have a SWT application run from within Eclipse?
>
> Anyone with experiences on launching SWT Apps from Eclipse on Mac?
>
> Ben
>

Ben,
Yes, Eclipse 3.0 needs java_swt but this should be transparent to you, that
is if you run an SWT-based application from within Eclipse 3.0.x, it will
automatically use java_swt.

However, in recent versions (3.1 stream) we eliminated the need for
java_swt. Instead we are now relying on a new option "-XstartOnFirstThread"
of Apple's JVMs >= 1.4.2_04 that allows to start the VM in the first (UI)
thread. This is exactly the functionality previously provided by java_swt.

Please make sure that you are either running Eclipse 3.0.x or Eclipse 3.1 on
at least a 1.4.2_04 VM.

--andre
Previous Topic:Widgets disposed
Next Topic:TableViewer+TableCursor+doubleClick
Goto Forum:
  


Current Time: Fri Apr 26 01:11:28 GMT 2024

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

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

Back to the top