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.
0 Comments
Leave a Reply. |