Monday, March 29, 2010

How to setup JDK on Snow Leopard

Here is how I did it ...

1. Modify /etc/profile by adding two entries as below
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
export PATH=$JAVA_HOME/bin:$PATH

2. run setJDK to change JDK version
3. source /etc/profile