In case you need to switch Java version in Mac OSX, here is the solution:
In Mac OSX 10.4.x, JAVA_HOME is located at /Library/Java/Home, but it is actually a symbolic link to /System/Frameworks/JavaJVM.Framework/Versions. You will see a list of JDK version in this folder. Also, you will find another symbolic link called CurrentJDK which actually point to your current JDK. You can simply change the symbolic link to your desired version. Then it's done.
For symbolic link usage, here is a sample:
>ln -s ActualFilename LinkFileName
The above solution is tested on Mac OSX 10.4.x. I am not sure whether the path is the same in previous Mac OSX. Please check by yourself.
No comments:
Post a Comment