cocoa 64-bit
Since Eclipse 3.5 Galileo …
…SWT supports Cocoa on OSX: 32-bit and 64-bit.
If you like to use Eclipse Cocoa 64-bit, then you must be sure, that Apples Java JDK 6 is used.
There are two ways to resolve this:
- Set JDK 1.6 as Default VM (then all Java Applications are using JDK 1.6)
- Configure Eclipse to use JDK 1.6 instead of Default Java 1.5 VM
1. Set Java 1.6 as Default VM
Open Applications – Utilities – java-preferences
You can Drag the VMs into your prefered order – to use Java 6 move Java SE 6 to the first position .
Because I’m not sure if all Applications run well under Java6 64 Bit I let the Default point to J2SE 5.0 and instead…
Configure Eclipse to use Java 6
You have to open the Info.plist, there are some commented lines to change the VM.
Uncomment one and direct to your Java 6 Framework directory:
Now start Eclipse using Java 6 and 64-bit Cocoa !
Eclipse -> About -> Installation Details
shows under Configuration that you’re really running Java 6 – 64 🙂
Have Fun with 64 Bit !
EPP Packages needed for OSX Cocoa 64-bit ?
There’s no download yet, but you get it easy:
https://ekkescorner.wordpress.com/2009/06/30/galileo-epp-for-cocoa-64-bit/
Using Java 5 with the 64-bit Cocoa port is fine as well. Java 6 isn’t necessary. With Java 5, you may run into trouble launching because by default the 32-bit Java VM is preferred over the 64-bit one. This is easily overcome with the ‘-d64’ vm argument.
thanks for the info, Kevin,
never tried the combination of Java 5 with 64-bit Cocoa.
Hi Ekkehard!
You always write that you are using the Cocoa version of Eclipse and I tried it several times.
But for me it is still unusable until now because of this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=277356
I get this annoying error dialog all the time:
https://bugs.eclipse.org/bugs/attachment.cgi?id=135712
Doesn’t you encounter the same problems?
Greetings, Robert
P.S.: Thanks for all your interesting blog entries!
Robert,
I’m working with Cocoa 32-bit since some time without a problem.
I’m just trying to switch daily work to cocoa-64bit.
till now also without a problem – but I’ve not finished moving all to 64-bit installations.
ekke
The Info.plist entry that work for me was the following:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
Brad,
yes – that should work, too.
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java
is an alias pointing to …Home/bin
ekke
Thanks for this blog! Got it running 🙂
thx karsten,
always good to know if a blog could help others 🙂
ekke