JAVA1.6 upgrade 1.7 on MAC OS, and maven3.2.1 configuration

Source: Internet
Author: User

One, my Mac system

The preinstalled JDK is 1.6 and needs to be upgraded to 1.7 due to the need to use the Eclipse MARs 2 version

Second, download Java JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Do not know why directly under very slow, later with the Thunderbolt super fast, the next good after the direct double-click on the line

Third, the new version will be installed in

/library/java/javavirtualmachines/jdk1.7.0_79.jdk/contents/home this path, the actual opening can see that eclipse is using this version of the JDK, but at this point Java_ Home didn't turn out to be the latest, so

In the/usr/kane user directory vim./BASHRC, make the following changes, MVN is already under the good, also set an environment variable here, and finally save the exit source./BASHRC can take effect

JAVA1.6 upgrade 1.7 on MAC OS, and maven3.2.1 configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.