This seems like nothing to write, but since it has been installed, just write it, right as a record, in case you lose your memories ^ o ^
There is an eclipse source on Ubuntu
Sudo apt-GetInstall eclipse
However, the version is old and 3.5.2, so it is better to download and install it by yourself.
Http://www.eclipse.org/downloads/
After downloading, decompress the package and you can use it only if you have installed JDK.
Let me think about what to do next?
Oh, by the way, develop webProgramYou have to install javaset. Download the Tomcat plug-in...
Http://www.eclipsetotale.com/tomcatPlugin.html
Remember that the downloaded plug-ins are not Tomcat software. The plug-ins are installed to use the software.
Decompress the downloaded package to the/Eclipse/plugins folder and restart eclipse.
Next, download tomcat.
Http://tomcat.apache.org/
Not to mention Installation
Next, specify the installation directory and version in window --- perferenes --- tomcat.
Start Tomcat and enter localhost: 8080 in the browser. If the welcome page appears, it will be done!
========================================================== ==================
See an article on the InternetArticleThe description is very detailed, but it is different from my software version, so there are some differences, but this is more detailed, record it
Conversion from http://www.cnblogs.com/jspace/archive/2011/04/04/2004947.html below
First, download the Tomcat plug-in version of the corresponding eclipse version. (Note: The Tomcat plug-in is the Tomcat plug-in and Tomcat is the Tomcat plug-in. The two cannot be confused !)
: Http://www.eclipsetotale.com/tomcatPlugin.html
Decompress the compressed package and put it in the eclipse plugins directory to restart eclipse. The Tomcat plug-in is successfully installed!
Of course, if the installation is successful, it means you can use it. You must configure tomcat to use the Tomcat plug-in normally,
Configuration process:
First, download the tomcat version available for eclipse,
: Http://tomcat.apache.org/
Decompress the package to the specified directory and configure
Eclipse-toolsbar-> window-> prefences-> tomcat-> point to the directory decompressed by Tomcat just now,
After the configuration is complete, you can use the Tomcat plug-in to start and close tomcat.
Use eclipse to create a dynamic web project, such as helloproject
Right-click Run as-> run on server->
Dialog Box:
After the configuration is complete, a directory of servers is displayed under the project directory, which is the tomcat configuration of the dedicated helloproject project,
You will also see servers in the console.
You can use tomcat, start, stop, restart, and so on.
The important point is:
For the server. xml and tomcat/CONF/server. xml files in the red circle,
We have said that server. XML in the red circle is the configuration file generated for helloproject. Of course, multiple projects can share the configuration under the same servers directory! I will not talk about this for the time being.
However, Tomcat/CONF/server. XML is owned by Tomcat itself and is more universal.
To facilitate the differentiation, we call server. XML in the Red Circle Project. server. xml and tomcat/CONF/server. xml tomcat. server. xml.
This article focuses on the <context... />
Let's look at the project. server. <context docbase = "helloproject" Path = "/helloproject" reloadable = "true" Source = "org. eclipse. JST. jee. server: helloproject "/>
Docbase refers to the helloproject directory that is equal to the servers directory, that is, the project directory,
Path indicates the Website access path, such as http: // locahost: 8080/helloproject.
The project. server. xml generated like this is not required.
For <content... />
The two configurations are correct:
<! -- <Context Path = "/HP" reloadable = "true" docbase = "C: \ Documents and Settings \ Administrator \ workspace \ helloproject \ webcontent" workdir = "D: \ wordir "/> -->
<Context Path = "/helloproject" reloadable = "true" docbase = "C: \ Documents and Settings \ Administrator \ workspace \ helloproject" workdir = "C: \ workdir"/>
<Context Path = "/HPT" reloadable = "true" docbase = "C: \ Documents and Settings \ Administrator \ workspace \ helloproject" workdir = "C: \ workdir"/>
The website access path is
Http: // localhost: 8080/HP
Http: // localhost: 8080/helloproject
We can access the above HPT as follows:
Http: // localhost: 8080/HPT/webcontent
In this way, we can see that if docbase refers to webcontent, you can use your own defined path,
If docbase indicates the project directory, you must use the original path of the project or modify the path.
The final workdir is the directory released by JSP after deployment. You can specify it by yourself or not.