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

    search for Eclipse

    Add the following string:

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

No comments: