![]() Just add (or modify) the following two lines at the end of the file: export JAVA_HOME=YOUR_JAVA_PATH/Contents/Home You can change them by modifying the /etc/profile content. In case if you have several Java versions on your machine and you want to choose it dynamically at runtime, i.e, in my case, I have two versions: ls -la /Library/Java/JavaVirtualMachinesĭrwxr-xr-x 3 root wheel 96B jdk1.7.0_71.jdk/ĭrwxr-xr-x 3 root wheel 96B jdk1.8.0_31.jdk/ It should output the latest version that you installed/updated to. Sudo ln -s /Library/Internet\ Plug-Ins/ugin/Contents/Home/bin/java /usr/bin/java In this step, we are going to point (symbolic link, ln -s command) the system java binary to the latest one, which we discovered in the previous step. ![]() In my case, the path was /Library/Internet\ Plug-Ins/ugin/Contents/Home/bin/java This is the latest one installed by the JDK installer/updater. Double click on the Path item and copy the path (cmd+c).The Java Runtime Environment Settings tab opens as below:.Open System Preferences -> select Java.The below steps are for OSX 10.10.4 Yosemite. We need to point this to the one downloaded by the JDK installer. The basic issue: /usr/bin/java is pointing to one provided by OSX itself initially ( /System/Library/Frameworks/amework/Versions/Current/Commands/java)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |