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