Monday, September 2, 2013

Setting default java on a mac

If you have multiple versions of Java on your Mac, you can set the current working version from the command line as follows:

export JAVA_HOME=`/usr/libexec/java_home -v1.6`

This will set the version to 1.6.  You can of course see the current version with

java -version

You can see all java versions installed on your mac with:

/usr/libexec/java_home -V

(tested with macos 10.8.4 )

2 comments:

  1. JBN Creators is dedicated to provide all-in-one eCommerce websites for your store. Here we are ready to provide you optimum support in terms of improving your business and expanding the horizon. We invite you to make use of our optimum resources so as to meet the business goal at the earliest.
    Web Development

    ReplyDelete
  2. JBN CREATORS is Ecommerce Website Development company in DELHI. We have more than 5 years of experience serving outsourcing web development services. Provide you service in affordable price at right time. Feel Free contact us 8802969543 , 9650829282 .
    Ecommerce Website Development

    ReplyDelete