ekkes-corner: eclipse | osgi | mdsd | erp | mobile

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:

http://ekkescorner.wordpress.com/2009/06/30/galileo-epp-for-cocoa-64-bit/

8 Comments »

  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.

    Comment by Kevin Barnes — June 26, 2009 @ 7:43 pm | Reply

    • thanks for the info, Kevin,
      never tried the combination of Java 5 with 64-bit Cocoa.

      Comment by ekkescorner — June 26, 2009 @ 8:52 pm | Reply

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

    Comment by Robert — June 29, 2009 @ 2:36 pm | Reply

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

    Comment by ekkescorner — June 29, 2009 @ 3:04 pm | Reply

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

    Comment by Brad Beck — July 1, 2009 @ 12:55 am | Reply

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

    Comment by ekkescorner — July 1, 2009 @ 6:38 am | Reply

  6. Thanks for this blog! Got it running :-)

    Comment by kthoms — July 13, 2009 @ 7:26 am | Reply

  7. thx karsten,
    always good to know if a blog could help others :-)
    ekke

    Comment by ekkescorner — July 13, 2009 @ 2:40 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Customized Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: