How To Change JVM In MAC OS
How can I change the version of my Java already installed in my MAC OS system? Can you please provide me the steps for the same? Since I am facing issues while trying to update the same
How can I change the version of my Java already installed in my MAC OS system? Can you please provide me the steps for the same? Since I am facing issues while trying to update the same
First of all, check the current version of your java installed in the system type “java –version” in your command prompt this will provide you the current version of your Mac OS system. After checking the current version then downloads the version you want to exchange your current version with. Now in the command prompt type “cd /System/Library/Frameworks/JavaVM.framework/Versions/”.
You can find the installed java program at
System/Library/Java/JavaVirtualMachines/Library/Java/JavaVirtualMachines/
Now find the correct path and then set the version as
rm CurrentJDK
ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/ CurrentJDK
This changed the current version of your java in your machine.