Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Eclipse 3.5 on Snow Leopard - how?
Eclipse 3.5 on Snow Leopard - how? [message #484273] Sat, 05 September 2009 09:22 Go to next message
Eclipse UserFriend
Originally posted by: phillipus.nowhere.net

OK, I'm really stumped on this one. I upgraded my Mac to Snow Leopard
and I can't run my RCP applications from Eclipse any more.

I'm using Eclipse 3.5 Cocoa 32-bit version and it runs fine in Snow
Leopard. Any plug-ins also run fine. My RCP apps that have been exported
as as standalone products run fine in Snow Leopard, but I cannot run the
RCP apps from Eclipse itself. Whatever target or JVM I specify I always
get the same error message:

!SESSION 2009-09-05 09:25:51.606
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_15
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_GB
Framework arguments: -product com.phillipus.myapp.product
Command-line arguments: -product com.phillipus.myapp.product -data
/Users/phillipus/Library/Application Support/Phillipus/MyApp -dev
file:/Users/phillipus/workspace/.metadata/.plugins/org.eclip se.pde.core/My
App/dev.properties -os macosx -ws cocoa -arch x86

!ENTRY org.eclipse.osgi 4 0 2009-09-05 09:25:53.174
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on
64-bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:18 2)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:15 9)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.internal.cocoa.NSThread.isMainThread(NSThrea d.java:33)
at org.eclipse.swt.graphics.Device.<init>(Device.java:116)
at org.eclipse.swt.widgets.Display.<init>(Display.java:628)
at org.eclipse.swt.widgets.Display.<init>(Display.java:619)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.ja va:532)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at com.dadabeatnik.redkite.RedKiteApp.start(RedKiteApp.java:53)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


What am I missing? And why does Eclipse (32-bit version) itself and
other standalone RCP apps run just fine, but not from Eclipse?
Re: Eclipse 3.5 on Snow Leopard - how? [message #484285 is a reply to message #484273] Sat, 05 September 2009 13:46 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 9/5/09 5:22 AM, Phillipus wrote:
> OK, I'm really stumped on this one. I upgraded my Mac to Snow Leopard
> and I can't run my RCP applications from Eclipse any more.
>
> I'm using Eclipse 3.5 Cocoa 32-bit version and it runs fine in Snow
> Leopard. Any plug-ins also run fine. My RCP apps that have been exported
> as as standalone products run fine in Snow Leopard, but I cannot run the
> RCP apps from Eclipse itself. Whatever target or JVM I specify I always
> get the same error message:
>
> !SESSION 2009-09-05 09:25:51.606
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_15
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_GB
> Framework arguments: -product com.phillipus.myapp.product
> Command-line arguments: -product com.phillipus.myapp.product -data
> /Users/phillipus/Library/Application Support/Phillipus/MyApp -dev
> file:/Users/phillipus/workspace/.metadata/.plugins/org.eclip se.pde.core/My
> App/dev.properties -os macosx -ws cocoa -arch x86
>
> !ENTRY org.eclipse.osgi 4 0 2009-09-05 09:25:53.174
> !MESSAGE Application error
> !STACK 1
> java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on
> 64-bit JVM
<snip>
>
> What am I missing? And why does Eclipse (32-bit version) itself and
> other standalone RCP apps run just fine, but not from Eclipse?

It looks like the system default JVM has been set to the 64-bit one, and
since you're running 32-bit Eclipse it does not work. In the Utilities
folder under Applications, you can open the Java Preferences app and
see/set the default JVM.
Still, the Launch Configurations that you use also allow you to specify
which JVM to use, regardless of the system default; have you looked there?

Hope this helps,
Eric

P.S. Other than this problem, have you been happy with the Snow Leopard
upgrade? I've resisted thus far...
Re: Eclipse 3.5 on Snow Leopard - how? [message #484286 is a reply to message #484285] Sat, 05 September 2009 13:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: phillipus.nowhere.net

Eric Rizzo wrote:
> On 9/5/09 5:22 AM, Phillipus wrote:
>> OK, I'm really stumped on this one. I upgraded my Mac to Snow Leopard
>> and I can't run my RCP applications from Eclipse any more.
>>
>> I'm using Eclipse 3.5 Cocoa 32-bit version and it runs fine in Snow
>> Leopard. Any plug-ins also run fine. My RCP apps that have been exported
>> as as standalone products run fine in Snow Leopard, but I cannot run the
>> RCP apps from Eclipse itself. Whatever target or JVM I specify I always
>> get the same error message:
>>
>> !SESSION 2009-09-05 09:25:51.606
>> -----------------------------------------------
>> eclipse.buildId=unknown
>> java.version=1.6.0_15
>> java.vendor=Apple Inc.
>> BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_GB
>> Framework arguments: -product com.phillipus.myapp.product
>> Command-line arguments: -product com.phillipus.myapp.product -data
>> /Users/phillipus/Library/Application Support/Phillipus/MyApp -dev
>> file:/Users/phillipus/workspace/.metadata/.plugins/org.eclip se.pde.core/My
>>
>> App/dev.properties -os macosx -ws cocoa -arch x86
>>
>> !ENTRY org.eclipse.osgi 4 0 2009-09-05 09:25:53.174
>> !MESSAGE Application error
>> !STACK 1
>> java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on
>> 64-bit JVM
> <snip>
>>
>> What am I missing? And why does Eclipse (32-bit version) itself and
>> other standalone RCP apps run just fine, but not from Eclipse?
>
> It looks like the system default JVM has been set to the 64-bit one, and
> since you're running 32-bit Eclipse it does not work. In the Utilities
> folder under Applications, you can open the Java Preferences app and
> see/set the default JVM.
> Still, the Launch Configurations that you use also allow you to specify
> which JVM to use, regardless of the system default; have you looked there?
>
> Hope this helps,
> Eric
>
> P.S. Other than this problem, have you been happy with the Snow Leopard
> upgrade? I've resisted thus far...

I've tried setting the default JVM to 32-bit...and loads of other
things....didn't work.

I eventually found the answer - you have to specify the VM switch "-d32"
to force 32-bit binding of libraries either in the Launch Configuration
or in the Prefs for the default JVM.

So far OK with Snow Leopard apart from the Eclipse problem. As a
cross-platform developer I have to be able to reproduce what my Mac
users are getting.

Cheers,

Phil
Re: Eclipse 3.5 on Snow Leopard - how? [message #484592 is a reply to message #484286] Tue, 08 September 2009 12:18 Go to previous messageGo to next message
Mark Phippard is currently offline Mark PhippardFriend
Messages: 129
Registered: July 2009
Senior Member
On 2009-09-05 09:59:53 -0400, Phillipus <phillipus@nowhere.net> said:

>> It looks like the system default JVM has been set to the 64-bit one,
>> and since you're running 32-bit Eclipse it does not work. In the
>> Utilities folder under Applications, you can open the Java Preferences
>> app and see/set the default JVM.
>> Still, the Launch Configurations that you use also allow you to specify
>> which JVM to use, regardless of the system default; have you looked
>> there?
>>
>> Hope this helps,
>> Eric
>>
>> P.S. Other than this problem, have you been happy with the Snow Leopard
>> upgrade? I've resisted thus far...
>
> I've tried setting the default JVM to 32-bit...and loads of other
> things....didn't work.
>
> I eventually found the answer - you have to specify the VM switch
> "-d32" to force 32-bit binding of libraries either in the Launch
> Configuration or in the Prefs for the default JVM.


Thanks! I had the same problem and just decided to use the 64-bit
version because I could not find the switch. What I fail to understand
is why the main Eclipse instance starts without the switch? I am
guessing Eclipse must do it internally in the launcher in which case it
seems like the Launch Configuration ought to work similarly so that
people do not have to Google for this switch.

Mark
Re: Eclipse 3.5 on Snow Leopard - how? [message #484597 is a reply to message #484592] Tue, 08 September 2009 12:54 Go to previous messageGo to next message
Marcus Ilgner is currently offline Marcus IlgnerFriend
Messages: 15
Registered: July 2009
Junior Member
On 08.09.09 14:18, Mark Phippard wrote:
> On 2009-09-05 09:59:53 -0400, Phillipus <phillipus@nowhere.net> said:
>
>>> It looks like the system default JVM has been set to the 64-bit one,
>>> and since you're running 32-bit Eclipse it does not work. In the
>>> Utilities folder under Applications, you can open the Java
>>> Preferences app and see/set the default JVM.
>>> Still, the Launch Configurations that you use also allow you to
>>> specify which JVM to use, regardless of the system default; have you
>>> looked there?
>>>
>>> Hope this helps,
>>> Eric
>>>
>>> P.S. Other than this problem, have you been happy with the Snow
>>> Leopard upgrade? I've resisted thus far...
>>
>> I've tried setting the default JVM to 32-bit...and loads of other
>> things....didn't work.
>>
>> I eventually found the answer - you have to specify the VM switch
>> "-d32" to force 32-bit binding of libraries either in the Launch
>> Configuration or in the Prefs for the default JVM.
>
>
> Thanks! I had the same problem and just decided to use the 64-bit
> version because I could not find the switch. What I fail to understand
> is why the main Eclipse instance starts without the switch? I am
> guessing Eclipse must do it internally in the launcher in which case it
> seems like the Launch Configuration ought to work similarly so that
> people do not have to Google for this switch.
>
> Mark
>

How did you switch to 64bit? Looking at the Eclipse Downloads site I
only see 32bit distributions.
Apart from that I'm happy to say that switching my RCP application from
32bit Carbon to 64bit Cocoa went extremely smooth: just dropped the
corresponding bundles into the target platform, changed the command line
args and everything worked.

Regarding Erics question about other experiences with Snow Leopard:
I'm still a bit divided since I had quite some trouble restoring my
files from Time Machine after doing a clean install of 10.6.
Also some drivers (Brother printer, Yamaha n12 MIDI) and applications
(e.g. Finale PrintMusic) still seem to contain PPC-only binaries which
could easily be recompiled as Universal Binaries. Call me stubborn but I
refuse to see a reason to install Rosetta some 4 years after the
transition to x86 started.
Apart from that, it's all runnig very nicely. ;)
Re: Eclipse 3.5 on Snow Leopard - how? [message #484603 is a reply to message #484597] Tue, 08 September 2009 13:41 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 9/8/09 8:54 AM, Marcus Ilgner wrote:
> How did you switch to 64bit? Looking at the Eclipse Downloads site I
> only see 32bit distributions.

You can roll your own 64-bit distribution pretty easily; see
http://bewarethepenguin.blogspot.com/2009/07/screencast-crea ting-eclipse-download.html

Hope this helps,
Eric
Re: Eclipse 3.5 on Snow Leopard - how? [message #484672 is a reply to message #484597] Tue, 08 September 2009 17:08 Go to previous messageGo to next message
Mark Phippard is currently offline Mark PhippardFriend
Messages: 129
Registered: July 2009
Senior Member
On 2009-09-08 08:54:53 -0400, Marcus Ilgner <marcus.ilgner@gerig.de> said:

> On 08.09.09 14:18, Mark Phippard wrote:
>> On 2009-09-05 09:59:53 -0400, Phillipus <phillipus@nowhere.net> said:
>>
>>>> It looks like the system default JVM has been set to the 64-bit one,
>>>> and since you're running 32-bit Eclipse it does not work. In the
>>>> Utilities folder under Applications, you can open the Java
>>>> Preferences app and see/set the default JVM.
>>>> Still, the Launch Configurations that you use also allow you to
>>>> specify which JVM to use, regardless of the system default; have you
>>>> looked there?
>>>>
>>>> Hope this helps,
>>>> Eric
>>>>
>>>> P.S. Other than this problem, have you been happy with the Snow
>>>> Leopard upgrade? I've resisted thus far...
>>>
>>> I've tried setting the default JVM to 32-bit...and loads of other
>>> things....didn't work.
>>>
>>> I eventually found the answer - you have to specify the VM switch
>>> "-d32" to force 32-bit binding of libraries either in the Launch
>>> Configuration or in the Prefs for the default JVM.
>>
>>
>> Thanks! I had the same problem and just decided to use the 64-bit
>> version because I could not find the switch. What I fail to understand
>> is why the main Eclipse instance starts without the switch? I am
>> guessing Eclipse must do it internally in the launcher in which case it
>> seems like the Launch Configuration ought to work similarly so that
>> people do not have to Google for this switch.
>>
>> Mark
>>
>
> How did you switch to 64bit? Looking at the Eclipse Downloads site I
> only see 32bit distributions.
> Apart from that I'm happy to say that switching my RCP application from
> 32bit Carbon to 64bit Cocoa went extremely smooth: just dropped the
> corresponding bundles into the target platform, changed the command
> line args and everything worked.

I just downloaded the 64-bit Cocoa version and started using that with
a new workspace.

Mark
Re: Eclipse 3.5 on Snow Leopard - how? [message #492619 is a reply to message #484592] Wed, 21 October 2009 06:45 Go to previous messageGo to next message
maarten meijer is currently offline maarten meijerFriend
Messages: 146
Registered: July 2009
Senior Member
For what its worth, when using the 64 bit IDE and you need to start a
program in 32 bit mode, you should add -d32 to the JVM arguments.

Took me only 4 hours to find out, so I hope I'm saving you some time


Maarten


Mark Phippard schreef:
> On 2009-09-05 09:59:53 -0400, Phillipus <phillipus@nowhere.net> said:
>
>>> It looks like the system default JVM has been set to the 64-bit one,
>>> and since you're running 32-bit Eclipse it does not work. In the
>>> Utilities folder under Applications, you can open the Java
>>> Preferences app and see/set the default JVM.
>>> Still, the Launch Configurations that you use also allow you to
>>> specify which JVM to use, regardless of the system default; have you
>>> looked there?
>>>
>>> Hope this helps,
>>> Eric
>>>
>>> P.S. Other than this problem, have you been happy with the Snow
>>> Leopard upgrade? I've resisted thus far...
>>
>> I've tried setting the default JVM to 32-bit...and loads of other
>> things....didn't work.
>>
>> I eventually found the answer - you have to specify the VM switch
>> "-d32" to force 32-bit binding of libraries either in the Launch
>> Configuration or in the Prefs for the default JVM.
>
>
> Thanks! I had the same problem and just decided to use the 64-bit
> version because I could not find the switch. What I fail to understand
> is why the main Eclipse instance starts without the switch? I am
> guessing Eclipse must do it internally in the launcher in which case it
> seems like the Launch Configuration ought to work similarly so that
> people do not have to Google for this switch.
>
> Mark
>
Re: Eclipse 3.5 on Snow Leopard - how? [message #661295 is a reply to message #492619] Thu, 24 March 2011 01:33 Go to previous message
Kori Miyanishi is currently offline Kori MiyanishiFriend
Messages: 1
Registered: March 2011
Location: Canada
Junior Member
Hi.
I'm new to the forum, Eclipse and developing so I hope someone can help me.

I'm using Eclipse IDE for C++ and am unable to run my programs. I get "Launch failed. No binary found".

Works fine on my Leopard desktop, but I need it to also run on my laptop that's running Snow Leopard.

I've been looking this up and based on what others have said, I have added the ' -arch i686' flags and have changed the compiler and linker commands to 4.0.

I've also read that I should change the path that links the GCC command with GCC 4.0, but I've been unable to do that:

cd /usr/bin
sudo rm cc gcc c++ g++
sudo ln -s gcc-4.0 cc
sudo ln -s gcc-4.0 gcc
sudo ln -s c++-4.0 c++
sudo ln -s g++-4.0 g++

When I type the second line in my command shell, I get this:

rm: cc: No such file or directory
rm: gcc: No such file or directory
rm: c++: No such file or directory
rm: g++: No such file or directory

Where are my compilers? I suspect once I've found them, I'll be able to change the paths, but as I've installed Xcode, I'm puzzled as to why they aren't recognized.

Does someone have the time and patience to walk me through a solution? I'd really appreciate it.

Cheers,
Kori
Previous Topic:PDE Build in Unix/Linux Machine
Next Topic:Problem With Images In The Help System
Goto Forum:
  


Current Time: Fri Mar 29 08:08:11 GMT 2024

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

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

Back to the top