1, http://www.oracle.com/technetwork/Java/javase/downloads/index-jsp-138363.html
Install JDK (view current JDK version via Java-version)
2. Configuring the JDK Path
1, enter the command line, start the following operation:
CD ~touch.bash_profile
VI. bash_profile
2. Input content JDK variable configuration content:
Export Java_home=/library/java/javavirtualmachines/jdk1.7.0_45.jdk/contents/home
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
?? How do I get the specific path to the JDK?
cd/library/java/javavirtualmachines/
Ls
CD JDK1. 8.0_65.jdk/contents/home
(See specific path):
Pwd
To see if the path is configured successfully:
Echo $JAVA _home
2.eclipse
http://www.eclipse.org/downloads/Select Eclipse IDE for Java EE developers(Mac OS X) download and unzip the app into the app
3.tomcate 1) http://tomcat.apache.org download tomcat, select the version you need from the left side of the webpage to download, I use 6 tomcate 6.0. The "binary distrubutions" on the right side of the end is selected tar.gz for download (i renamed the extracted file to tomcate in the library/of the System) 2) Let's change the permissions on this folder sudo chown- R/library/tomcatsudo chmod +x/library/tomca/bin/*.sh make this directory under '/library/tomcat/bin ' have the Execute SH script permission/library/tomcat/bin/sta Rtup.sh running Tomcat /library/tomcat/bin/shutdown.sh Stop TomcatHTTP://LOCALHOST:8080/test is configured successfully
4. Configure the Tomcat for Eclipse
Tomcat for Eclispe plugin:
Tomcat Eclipse Plugin,: http://www.eclipsetotale.com/tomcatPlugin.html
Unzip the Tomcat plugin into the plugins directory in the Eclipse directory.
After you start eclipse, start configuring Tomcat.
Eclipse->preferences, find the TOMCAT option: Select Tomcat version 7.x, then configure the Tomcat installation directory
Configure server options, locate Server->server runtime environment, create a new server
Finally OK, the settings for Tomcat and Eclipse are complete.
Normally, you can see three more Tomcat buttons on the interface.
If you don't see it, select Menu window->custmize perspective and tick on Tomcat.
How to configure the Java Server Development environment under Mac OS System