Saturday, January 3, 2015

Java and Eclipse on the mac

At one time, Apple seemed into Java and things were only slightly painful.  Then Java went out of favor with Apple and things went from bad to worse.  I downloaded the 64bit Mac build of Eclipse and got this after cd /Applications and tar xf ~/Downloads/eclipse-standard-luna-SR1-macosx-cocoa-x86_64.tar.gz and then double clicking the Eclipse icon.


I tried editing /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini to look like this:


Looking at my system, I find this for java:

ls -l /Library/Java/JavaVirtualMachines
drwxr-xr-x  3 root  wheel  102 Apr  4  2014 jdk1.7.0_51.jdk
drwxr-xr-x  3 root  wheel  102 May  7  2014 jdk1.7.0_55.jdk
drwxr-xr-x  3 root  wheel  102 Jul  9 13:46 jdk1.7.0_60.jdk
drwxr-xr-x  3 root  wheel  102 Jul 30 13:27 jdk1.7.0_65.jdk
drwxr-xr-x  3 root  wheel  102 Sep 18 05:50 jdk1.7.0_67.jdk

drwxr-xr-x  3 root  wheel  102 Dec 10 08:45 jdk1.7.0_71.jdk

But no luck.  I finally found that this success:

cd /Applications/eclipse/Eclipse.app/Contents/MacOS
./eclipse -vm /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/

And now I have eclipse running:


So I now have Eclipse Luna Service Release 1 (4.4.1) Build id 20140925-1800 on Mac OSX 10.9.5 with XCode 6.1.1.  It took me way too long to get this figured.

No comments:

Post a Comment