2014年12月29日 星期一

JDK configuration on Mac OS X

default JDK installation path:

/System/Libary/Java/JavaVirtualMachines/
or
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home

a symbolic link to this jdk: /System/Library/Frameworks/JavaVM.framework/Versions


To check path, double click
/usr/libexec/java_home


To uninstall previous Java version on Mac, do all these:
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin


Note: After uninstall JDK1.6, fail to launch Titanium Studio with error  "xxxx symbol not found" 
Solution: install Java for Mac OS X patch:
http://support.apple.com/kb/DL1572?viewlocale=en_US 

End up the above patch will install JDK1.6 to Mac OSX again..... 
When compile Module project in Ti Studio, it use JDK 1.6 instead of 1.7...




沒有留言:

張貼留言