How to set the JAVA_HOME variable in Mac OS X – Snow Leopard (via Decoding the Web)

Duke, the Java Mascot, in the waving pose. Duk...
Image via Wikipedia

Nice instructions. Most people probably won’t have to do this, but often developers use Java.

Recently I had to setup a Java app on my Mac, which was running from the Terminal, and needed the JAVA_HOME variable set. Here’s what had to be done: – Start the Terminal app. – Create/Edit ~/.bash_profile file. Note: I first tried creating and using the ~/.bashrc file, but that didn’t work (Mac OS 10.6.2), while ~/.bash_profile worked as expected. Therefore, $ vi ~/.bash_profile … and paste the following (make it a single line): export JAVA_HO … Read More

via Decoding the Web

Share

Post a comment