Configure the JSP development environment on Eclipse 3.0

Source: Internet
Author: User
First, let's talk about environment configuration. Note that the environment I configured is under Win 2000 Server, not Linux. The general configuration process is irrelevant to the operating system, there is only a difference in the specific installation. Whether the configuration is successful is not related to the operating system.

Software Installation is divided into the following parts:

1. Java environment installation:

Jdk1.4.1 is used here (jdk1.4.2 can also be used), which can be downloaded from Sun's website;

2. Tomcat environment installation:

The tomcat version is 4.1, and the installation or decompression version is acceptable;

3. Install eclipse 3:

You can go to the following address to download http://www.eclipse.org/downloads/index.php

I downloaded version 3.1m4, which should be relatively new. 4. Tomcat plug-in installation;

Tomcat plug-in is to download idea from the address below;

5. lomboz plug-in installation;

The lomboz plug-in needs to be downloaded in two parts: one is the EMF environment and the other is the lomboz plug-in, which can be found in the following places respectively

Http://forge.objectweb.org/project/showfiles.php? Group_id = 97

Http://download.eclipse.org/tools/emf/scripts/downloads.php#goto2.1.0I

Break;

Here, we mainly select the appropriate lomboz plug-in based on eclipse, and then take a look at the lomboz plug-in introduction, where we will introduce the required EMF plug-in version, and then go to the following address to find the EMF plug-in.

Now all the downloads are available. Next I will introduce how to install and configure them.

I. installation in the Java environment

You only need to install it directly, but it is best to install it outside the system disk to better understand the JVM configuration. After installation, You need to configure the environment variable and create a java_home, configure the path and add the JDK bin directory. In this way, you can use JDK commands in any path of the command line.

[Test]: compile a hello World Program and use the javac hello. Java and Java Hello commands in DOS. If the program can be properly executed, the JDK installation is successful.

Ii. tomcat installation

You can directly decompress the decompressed version, and then configure tomcat_home. Pay attention to the following two points during the installation. One is that after the installation, the Tomcat service can be started, but you still need to configure tomcat_home; the second is to check whether the installation program registers the Tomcat service as a Windows Startup service. You need to check it in the "service". If this option is available, set it to manual startup, and stop the service first.

[Test]: run the startup. Bat command. After the service is started normally, enter

Http: // localhost: 8080/If a normal kitten page appears, it should be okay.

3. Install eclipse 3

Eclipse installation is very simple. You only need to decompress the package and copy the eclipse directory to the drive letter. at startup, the system will automatically find the JVM. Of course, you can configure it later, however, it seems that JDK must be installed first.

4. Tomcat plug-in installation, EMF plug-in installation, lomboz plug-in installation,

The steps are the same. decompress the software package and copy the directory files to the feature or plugins directories Based on the directory structure, the following describes the eclipse configuration in detail.

5. Configure eclipse

1. First, open the configuration page window-> preferences. If these plug-ins are successfully installed, the lomboz and tomcat options should be included in the list on the left. If not, check whether the preceding steps are correct.

Click Java-> installed jres, and then display the above. If it is initially installed, only the first JRE is displayed (do not ask me what JRE is, check the information by yourself ), that is the default JDK installed on drive C. If multiple JDK is installed on the system, you 'd better create one. Click Add and select the JDK location you need, then it will automatically search for other parameters and click OK. After returning to the interface, do not forget to click the JDK you just added. Otherwise, it will be useless. Click OK to close the window.

2. Open the configuration page again and click the Tomcat option.

Here is the configuration of Tomcat parameters. Based on the tomcat version you have installed, select tomcat version. However, you can find the main directory of Tomcat and enter it in Tomcat home. The following parameters are automatically configured, click Apply. Select "advanced" on the left, copy the main directory of Tomcat to Tomcat base, and click "Apply.

Select JVM setting on the left, select the newly added JRE, click Apply, and click OK. In this way, you can. Return to the interface and click the yellow kitten icon on the toolbar. If the configuration is correct, the Tomcat startup information should be displayed on the console. If yes, tomcat configuration is successful.

1. lomboz basically does not need any configuration. If there is the lomboz option on the left, it will basically succeed. Click lomboz and select Tools. jar in the JDK Just configured. The configuration is complete. The test method is to create a JSP file to check whether the script code is specially displayed when it is opened, and create a test class to see If JSP can automatically reference functions in the class.

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.