I need help setting up Java Development Kit (JDK
) on Mac 10.6.8. I'm trying to take the following online self-paced course: http://www.andrew.cmu.edu/course/95-815/.
I've managed to install "OpenJDK 7 version 1.7.0"
by using "Pacifist" and momentarily altering my
"/System/Library/CoreServices/SystemVersion.plist"
file as directed in this post: How to install java jdk 7 on Snow Leopard. I've also moved "OpenJDK 7 version 1.7.0"
to the top priority in Java Preferences
. However, upon entering java -version
in Terminal, I receive the output
-bash: java: command not found
.
On the other hand, when I enter /usr/bin/java -version
, I receive the following output:
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-b00)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
I suspect that my issue has to do with establishing the correct PATH, however, I have no idea how to do this and all the guides I find are too cryptic for me to understand. Thank you for any assistance!