How to install Java on Mac

# There is a fantastic, well-supported, simple solution for Mac OS X Leopard developers to install Java SDK (”JDK”) called SoyLatte.  So far, this is the simplest way I’ve found to install Java on Mac, and it’s based on all free and open source Java (and soon to be a part of OpenJDK, the open source Java developers’ initiative).

# Note: Java SDK (”JDK”) comes pre-installed on Mac Leopard.  Sometimes you want to have more control over your Java runtime installation, and un-installation, if the occasion calls.  Check out Apple’s site for more info on the pre-installed version of Java: http://developer.apple.com/referencelibrary/GettingStarted/GS_Java/index.html

### INSTALL JAVA ON MAC ###

1. Download SoyLatte archive file to any place you want on your Mac: 
soylatte16-i386-1.0.3.tar.bz2

wget http://hg.bikemonkey.org/archive/javasrc_1_6_jrl_darwin/soylatte16-i386-1.0.3.tar.bz2

2. Unarchive SoyLatte.

tar -xvf  soylatte16-i386-1.0.3.tar.bz2

3. Set environment variable for $JAVA_HOME to point to the SoyLatte directory.

nano ~/.bashrc
export JAVA_HOME=/Users/me/src/soylatte16-i386-1.0.3
export PATH=$JAVA_HOME/bin:$PATH

4. Save bash profile and refresh it to set the source environment variables.

source ~/.bash_profile

5. Check that Java is installed correctly.

which java
java -version

DONE! 

2 Comments so far »

  1. Websites tagged "flex" on Postsaver said,

    Wrote on September 11, 2008 @ 5:47pm

    [...] - Photographs!!!! saved by HatakeAyumi2008-09-11 - How to install Java on Mac saved by beanz1872008-09-11 - Breaking News With Flex and Google Maps saved by LuisArias2008-09-10 [...]

  2. import export directory said,

    Wrote on October 10, 2008 @ 4:00am

    import export directory…

    Information on this subject is not always as straight forward as it first appears. I know I used to just use a common sense approach, but now I do direct research before coming up with my next move. Keep the information coming….

Comment RSS · TrackBack URI

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Comment: