How to configure the Java Server Development environment under Mac OS System

Source: Internet
Author: User

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

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.