java_home -V Make sure that you put the capital letter V and Enter Once you installed the JDK, cd into /usr/libexec from your Terminal window.Download the appropriate JDK from Oracle website for Mac OS.Type java -versionand Enter to check which version of Java you have as a default.So, I had to downgrade the JDK to 1.7 to compile the project. ![]() But my Mac OS X Yosemite already installed JDK 1.8 in my system. ![]() ![]() More recently, I had to compile a Java project with JDK 1.7 because Google App Engine had a trouble running the project built in JDK 1.8. You may installed a Java Development Kit (JDK) already in your Mac OS X, but what do you do you if your currently installed JDK version is not compatible? Well, I personally had situations like that. Changing default Java in Mac OS X is bit tricky
0 Comments
Leave a Reply. |