Category

JDK 7 on OSX

You can download a dmg from Oracle’s download page. You might expect that you’d run the installer and you’d be ready to go. Not me.

I had previous versions of Java installed. In my startup file (.bash_profile) I had set this:

With this set, java -version still reported 1.6.

I set it to this and things worked.

That’s a bit clunky. There is a better way.

If you want to use another version, e.g. 1.6

One Reply to “JDK 7 on OSX”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.