1. Modify /etc/profile by adding two entries as below
2. run setJDK to change JDK versionexport JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
export PATH=$JAVA_HOME/bin:$PATH
3. source /etc/profile
2. run setJDK to change JDK versionexport JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
export PATH=$JAVA_HOME/bin:$PATH
No comments:
Post a Comment