Created
October 28, 2012 17:19
-
-
Save raws/3969193 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JAVA6_PATH="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin" | |
JAVA7_PATH="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin" | |
if [ -d "$JAVA6_PATH" ]; then | |
ln -sv "${JAVA6_PATH}/java" "/usr/local/bin/java6" | |
ln -sv "/usr/local/bin/java6" "/usr/local/bin/java" | |
else | |
echo "Error: Java 6 is not installed at ${JAVA6_PATH}" | |
fi | |
if [ -d "$JAVA7_PATH" ]; then | |
ln -sv "${JAVA7_PATH}/java" "/usr/local/bin/java7" | |
else | |
echo "Error: Java 7 is not installed at ${JAVA7_PATH}" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment