If you are having problems during the installation process, look at the last part of the "configuration process problems and solutions"to see if you have the answers you want.
Configure Tomcat Prerequisites: Eclipse is already configured with JDK and JRE and downloads an eclipse that integrates the Java EE plugin
(Eclipse, JDK, JRE to download on the website of Baidu, pay attention to distinguish 32/64-bit system)
for information on configuring JDK and JRE issues, refer to:
http://jingyan.baidu.com/album/e2284b2b5b7ae5e2e7118d11.html?picindex=16
resolution 32/64 Method: knock systeminfo at command prompt (CMD) and find the system type, if x86 represents 32 bits, x 64 indicates 64 bits
—————————————————————————————————————— Tomcat 7.0.75 Download address: http://tomcat.apache.org/download-70.cgi#7.0.75 Extract after download complete
open Eclipse, bars->window-> preferences click Preferences
-
Locate the server-> Runtime in ' Preferences ' evironment
(I did not find the server when I installed the same situation can refer to my blog reproduced article "Integrated Eclipse and Tomcat cannot find the server Option") click Add, add a new operating environment:
-
Select ' Apache Tomcat7 ' click ' Next '
-
add Tomcat, remember to extract and then add
-
Select the JRE runtime environment, where Jre7 is selected
If you do not have the JRE installed in the Options box, refer to the method:
http://jingyan.baidu.com/article/2a1383284969e6074b134f77.html, add JRE to your eclipse
click ' Finish ' to add success as shown in the following illustration
-
Run Tomcat: Open the Bin directory-> double-click Startup.bat
At that time encountered a flash-back situation, found that the environment variable java_home more semicolons, vomiting blood t-t
the following window and content appear
Open the browser, enter "http://localhost:8080/" appears below this page, congratulations, you can start to do Web applications, about the new Web project method, you can refer to my blog article "in Eclipse New Web project on (after configuration tomcat7.0)
-
Problems and Solutions ———————————————————————— the configuration process
When you discover that the Eclipse version is out of the way, when you are ready to create a new Web project, you find that Dynamic Webprojects cannot be found and you cannot create new projects, so you should start by checking to see if your eclipse version integrates the Java EE plug-in. (If you need to uninstall the original Eclipse software, in the Control Panel can not find the uninstall program, directly to the directory to delete the line.) Because it is green to extract the software, decompression can be used. )
Installation of JDK and JRE and settings for environment variables. Some historical legacy, spending some time figuring it out and reconfiguring it. Download the latest version of Jdk.exe in the official website, if you do not want to install in the default location, you can modify the path, after installation automatically start JRE installation, Note: Remember to modify the path of the JRE, placed in the same directory as the JDK, as shown in the figure:
I did not find the server when I installed it, and the same situation can be referred to my blog reproduced article "Integrated Eclipse and Tomcat cannot find the server option."
There are no JRE installed in the Options box, reference method:
http://jingyan.baidu.com/article/2a1383284969e6074b134f77.html, add JRE to my eclipse, the following illustration shows the add success and you can continue with the steps.
Can not open startup.bat and 8080 ports, my problem is in the environment variable java_home a semicolon, so even if the cmd input Java and Javac commands are correctly displayed, the environment variable is not necessarily exactly correct.