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.
- Install Java SDK. If you just download JRE, you will run into problems. Eclipse Luna requires java version 7 or higher.
- 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)
- Download Eclipse Luna
- Copy Eclipse to your Application folder. If you already have an eclipse folder there, make a back up copy.
- Open Eclipse by double clicking on the Eclipse icon. If you get an error similar to the one below, go to next stepeclipse The JVM shared library "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
- Open the following file
$ vi /Applications/eclipse/Eclipse.app/Contents/Info.plist
Add the following string:
You can check jdk folder path as follows:
$ ls /Library/Java/JavaVirtualMachines/ | grep jdk