- Create a Mac developer account- Download:- Include this classpath in your .bash_profile file located on /Users/your-name/.bash_profile:export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Homeexport PATH=$JAVA_HOME/bin:$PATH- Verify that installation was successful, run below command in your terminal to verify that you have Java 1.6.0:java -version
Here is my output:
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-223)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)