Simple Application configuration of eclipse-jee-Galileo (including Tomcat)

Source: Internet
Author: User

Let's start from here!

 

After some time, I had no programming skills and installed a new system, so I was in a good mood. As a result, I added my own practices to more hands-on programming as planned.

I got a new eclipse and found it was already the for J2EE code: Galileo version (eclipse-jee-Galileo), Khan...

I don't want to use myeclipse anymore. After all, I am a beginner. I know the speed.

So it took an afternoon to configure the eclipse platform.

 

First, download JDK 6, eclipse, and tomcat 6.20 on the official website. The next step is the installation. I will not elaborate on it here, so it is easy to find it.

JDK 6: http://java.sun.com/javase/downloads/index.jsp

Eclipse: http://tomcat.apache.org/

Tomcat 6.20: http://tomcat.apache.org/

 

Next, we will configure tomcat in eclipse. here we can use it as a personal case. If you only need to run tomcat in eclipse

Environment is easier.

1: create a dynamic web project

2: create a simple JSP file in webcontent and save it.

3: Right-click the JSP file and choose run on server. The select the server type dialog box appears.

Open the Apache folder, select tomcat6.0, click Next, and fill in the Tomcat root directory to run.

4: Finally, you can modify or add

Server

 

However, if you want to fully configure tomcat to eclipse, you can set the details of tomcat in eclipse.

1: need to download plug-ins: http://www.eclipsetotale.com/tomcatPlugin/tomcatPluginV32.zip

2. decompress the plug-in and cut the com. sysdeo. Eclipse. tomcat_3.2.0 folder to the plugins folder in eclipse.

Rename the devloader.zip file in com.sysdeo.eclipse.tomcat_3.2.0to the devloader. jar file.

3: copy the devloader. jar file to the Lib folder under the Tomcat root directory.

4: Start eclipse. If there are 3 more Tom cats on the menu bar, it indicates the operation is successful. Then, you can see them in window-> preferences.

Tomcat options

To sum up, run in the first configuration, eclipse creates a virtual server and runs it on Tomcat.

You do not need to deploy your components. It will automatically help you deploy them. You can add <content> to server. xml and run it automatically.

You need to deploy tomcat in eclipse and enter your address in your browser.

 

Add another small problem: an error occurs when a servlet is created in eclipse-jee-Galileo, indicating that the httpservlet cannot be found.

Because your project does not add the servlet-api.jar package, the solution is very simple, there is in the Lib folder under your Tomcat root directory,

In preferences-> JAVA build path, select the web app libraries point to edit. Add this jar package and you will be OK.

 

 

 

 

 

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.