Saturday, April 18, 2015

Eclipse Luna on Mac OS X Mavericks



Setting up Eclipse Luna on Mac OS Mavericks is not straightforward. I ran into some issues and had to search bunch of posts to solve the problems.


Here are the steps for getting Eclipse Luna working correctly on Mac OS X Mavericks.

  1. Install Java SDK. If you just download JRE, you will run into problems. Eclipse Luna requires java version 7 or higher.
    http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
  2. Open a terminal and test that your version of java is correct:
    $ java -version
    java version "1.7.0_79"
    Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

  3. Download Eclipse Luna
    http://ftp.osuosl.org/pub/eclipse/technology/epp/downloads/release/luna/SR2/eclipse-java-luna-SR2-macosx-cocoa-x86_64.tar.gz
  4. Copy Eclipse to your Application folder. If you already have an eclipse folder there, make a back up copy.
  5. Open Eclipse by double clicking on the Eclipse icon. If you get an error similar to the one below, go to next step
    eclipse The JVM shared library "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
  6. Open the following file
    $ vi /Applications/eclipse/Eclipse.app/Contents/Info.plist

    search for Eclipse

    Add the following string:
    -vm/Library/Java/JavaVirtualMachines/jdk1.7*.jdk/Contents/Home/bin/java

    You can check jdk folder path as follows:
    $ ls /Library/Java/JavaVirtualMachines/ | grep jdk



No comments: