Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jan 032012

How to set JAVA_HOME on OSX


To set the JAVA_HOME environment variable on OSX, add the following line in your ~/.bash_profile

export JAVA_HOME=$(/usr/libexec/java_home)

That's all.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>