Home > Configuration > Eclipse 3.5 now runs with Java6 on Mac OSX

Eclipse 3.5 now runs with Java6 on Mac OSX

At last Eclipse can now be run withJava6 on mac OSX. For sure it may not be stable as the version of Eclipse is still not a release candidate but it’s a clear step forward.

Here are the steps I did to make it work:

  1. Make java6 be the default JDK.
  2. remove the link to java 5 JDK.
  3. set JAVA_HOME environment variable.
  4. download eclipse 3.5 64 bits cocoa for mac OSX.
  5. change the eclipse.ini file 
  6. change the Info.plist file

I’ve now illustrated them in details:


  • type java preferences in spotlight and set the parameters as illustrated below:









  • removing the link of JDK 1.5 

In the folder /System/Library/Frameworks/JavaVM.framework/Versions remove the current link to JDK1.5 and set it to JDK1.6

sudo rm CurrentJDK

sudo ln -s 1.6 CurrentJDK

Here is my files in this folder after the operation is completed


Picture 2







  • setting JAVA_HOME environment variable

Check that the JAVA_HOME environment variable points to the correct path by typing env | grep JAVA_HOME

If it’s not JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home then in your home folder edit the .bash_profile file and add

export JAVA_HOME
export PATH


export JAVA_HOME


export PATH

  • download the right version of eclipse


and uncompress it in the folder of your choice.

  • change the config.ini file

There ‘s a config.ini file in the configuration folder of the eclipse installation. Edit it to add:


-vm /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java

It tells eclipse platform the default version to use to run the program.

Then you’re done, launch ./eclipse in the root directory of the eclipse installation.

Eclipse 3.5 running with Java 6

I have done this with Eclipse 3.5M5 version. The release candidate should be available very soon.

  1. No comments yet.
  1. No trackbacks yet.

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 )

Google+ photo

You are commenting using your Google+ 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

%d bloggers like this: