cocoa 64-bit

Since Eclipse 3.5 Galileo …

galileo_is_here

…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:

  1. Set JDK 1.6 as Default VM (then all Java Applications are using JDK 1.6)
  2. 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

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:

java64_infoplist

Now start Eclipse using Java 6 and 64-bit Cocoa !

Eclipse -> About -> Installation Details

java64_configuration

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/

8 responses

  1. 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.

  2. 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

  3. The Info.plist entry that work for me was the following:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home

  4. 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

Leave a comment