Keyword: jdk,web,eclipse,tomcat
Os:windows 8.1 with Update
1. Download the installation jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Set Environment variables:
Java_home:c:\program Files\java\jdk1.8.0_11
2. Download the installation tomcat:http://tomcat.apache.org/. For example 7.x version: Http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.55/bin/apache-tomcat-7.0.55-windows-x64.zip.
After download, extract to: C:\apache-tomcat-7.0.55.
Set Environment variables:
catalina_home:c:\apache-tomcat-7.0.55
3. Run C:\apache-tomcat-7.0.55\bin\startup.bat and start Tomcat.
The boot success interface is as follows:
Open http://localhost:8080/. You will see the Tomcat home page.
4. Download Eclipse IDE for JAVA EE developers:http://www.eclipse.org/downloads/
No need to install unzip to c:\eclipse after download.
Run Eclipse.exe to start.
5. Download Tomcatplugin:http://www.eclipsetotale.com/tomcatplugin.html#a3
After downloading, unzip the Com.sysdeo.eclipse.tomcat_3.3.1.jar to C:\eclipse\plugins.
6. Configure Eclipse
Restart Eclipse.
You can add, remove, and set the JRE in Window-prefereces-java-installed JREs.
Select "Version 7.x" in Window-prefereces-tomcat and set Tomcat home to C:\apache-tomcat-7.0.55.
In Window-prefereces-tomcat-advance, set the Tomcat base to C:\apache-tomcat-7.0.55.
In Window-prefereces-server-runtime enviroments, add Apache Tomcat v7.0.
7. Create a web App
Select File-new-dynamic Web Project, give a project name, such as "MyWeb0", other reserved defaults, click Finish.
In Project Explorer, right-click on "WebContent" and new JSP file named Index.jsp.
8. Publish Run web App
Right-click on the project and select Run As-run on Server.
Eclipse+tomcat Web Development Configuration