Build a Java development environment under Mac

Source: Internet
Author: User

Just go from Windows system to use Mac system, feel is not particularly familiar, need certain adaptation time. Here's a brief introduction to the basic Java Development environment under Mac.

1. Installing the JDK

After installing the jdk1.7, it is found that the environment variable configuration is not required and the Java and Javac commands can be used directly in the terminal. The directory where the JDK is located is:

/library/java/javavirtualmachines

2. Install Maven

Unzip the MAVEN package and configure the MAVEN environment variable

The configuration changes as follows:

1. Use the touch command to create under the ~ directory ( user directory ) . Bash_ profile file, using VI to open the file, in which the following information is written

maven_home=/users/seraph/... "Your path" .../apache-maven-2.2.x

Path= $MAVEN _home/bin: $PATH

Export Maven_home

Export PATH

Press ESC Key, the command state : Wq Exit VI

2. Locate the ~/.m2/ directory and copy it using the "CP Source path copy path " command the settings.xml file for the conf directory under the Maven root directory , and the file specified in the Local repository the path in

last logout, after re-starting Bash_profile to take effect.

3. Installing IntelliJ Idea

It is recommended to use IntelliJ idea as a development tool.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Build a Java development environment under Mac

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.