Just a reminder

When using Java projects that requires the environment variable JAVA_HOME to be set, proceed as follow

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home

This can be added to a shell startup script such as .cshrc or .bashrc.