|
Re: [Mac] Problems running SWT Application from Eclipse [message #443809 is a reply to message #443802] |
Fri, 01 October 2004 08:41 |
Andre Weinand 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
|
|
|
Powered by
FUDForum. Page generated in 0.03250 seconds