Sunday, August 9, 2009

Installing Java SE 6 on Mac OS X 10.5.7

To install Java 1.6 (Java 6 is required for Google Wave development)

- 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/Home
export 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)