I have been engaged in. NET development, a recent whim, want to learn Java development (because many people around the use of Java, so also want to follow the crowd?? ), the results found that I have only a Mac Pro (Window System of the computer to send the younger brother ~), so have to find the strategy under the MAC configuration of a Java development environment!
Next, get to the point:
1, first download the latest version of the JDK (I am the download version 1.8)
2, enter the terminal command line (if you do not know, please Baidu ~)
3. At the command line, enter the/USR/LIBEXEC/JAVA_HOME-V 1.8 command to find the JDK installation directory (for example, my native installation directory is:/library/java/javavirtualmachines/jdk1.8.0_112.jdk/ Contents/home)
4. Continue to enter VIM ~/.bash_profile on the command line to open the configuration file, write the following configuration and save
Java_home=/library/java/javavirtualmachines/jdk1.8.0_112.jdk/contents/home
paht= $JAVA _home/bin: $PAHT
Export Java_home
Export PATH
5. Download tomcat and copy the extracted folder to the specified directory, open the command line input CD tomcat directory /apache-tomcat-9.0.0-2.m15/bin, enter chmod 755 *. SH to tomcat start file plus permissions, enter the SH startup.sh to start Tomcat and enter (SH shutdown.sh to stop Tomcat), browser input http://localhost:8080 Check whether you can open the test page.
6. Continue vim ~/.bash_profile and add the following directory
Export path= $PATH:Tomcat directory /apache-tomcat-9.0.0-2.m15/bin
7. Next to download Eclipse and install
This time the environment to build the journey to a complete end, thank you crossing!
Add a black technology: no jailbreak children's shoes can be downloaded through the offline download of Baidu Network online resources to the network disk, and then downloaded from the network to the local
Remember once Mac OS Installation