Eclipse Practical Tutorial (configuring JSP)

Source: Internet
Author: User
Tags add command line copy interface version window zip tomcat
js| Tutorial

First of all, the environment configuration, note that I configured the environment is under the win server, not Linux, configuration of the approximate process and operating system, only in the specific installation of the difference. The configuration is successful or not, regardless of the operating system.

Software installation is divided into several parts:

1, the Java Environment installation:

Here is jdk1.4.1 (jdk1.4.2), which can be downloaded to Sun's website;

2, Tomcat Environment installation:

Tomcat version is 4.1, installation version or decompression version is OK;

3. Eclipse 3 Installation:

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

I downloaded the 3.1M4 version, this version should be relatively new. 4, Tomcat plug-in installation;

The Tomcat plug-in is to download http://www.sysdeo.com/eclipse/tomcatPlugin.html to the following address, before downloading to see if the plug-in is suitable for Eclipse version, I downloaded is tomcatpluginv3.zip;

5, Lomboz plug-in installation;

Lomboz plug-ins need to download two parts, one is the EMF environment, and the other is the Lomboz plug-in, respectively, to the following places to find

http://forge.objectweb.org/project/showfiles.php?group_id=97

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

I downloaded the emf-sdo-runtime-i200412160800.zip and org.objectweb.lomboz_3.1.0.n20050106.zip;

This is mainly based on eclipse to select the appropriate Lomboz plug-in, and then look at the introduction of the Lomboz plug-in, where the need for the EMF plug-in version, and then go to the address below to find EMF plug-ins.

All right, here's the download, so I'll explain how to install and configure it.

First, the Java environment installation

This can only be installed directly, but it is best to install it outside the system disk, so that you can better understand the configuration of the JVM; when installed, you need to configure the environment variables, create new java_home, and configure the path to add the JDK's Bin directory. This allows you to use JDK commands on any path in the command line.

[Test]: Write a Hello World program, then use the Javac Hello.java and java Hello command in DOS, and if it works, it proves that the JDK was installed successfully.

Second, Tomcat installation

Decompression version of the direct decompression can be, and then configure Tomcat_home, installation version of the two points to note, one is installed after the Tomcat service can be started, but still to configure Tomcat_home ; The second is to see if the installer is registering the Tomcat service as a startup service for Windows, needs to be viewed in the service, and if this option is set to start manually, stop the service first.

[Test]: Use the Startup.bat command, after the service is normal to start, ie browser input

http://localhost:8080/If there is a normal kitten page, then there should be no problem.

Iii. Eclipse 3 Installation

Eclipse installation is very simple, as long as the decompression, and then copy the Eclipse directory to the letter can be, at the time of startup, the system will automatically look for the JVM, of course, can be configured later, but it seems that the JDK must be installed first.

Four, Tomcat plug-in installation, EMF plug-in installation, Lomboz plug-in installation,

The steps in these sections are the same, unpack the packages, and then copy the directory files to the feature or plugins directory, based on the inside directory structure, and the following is a detailed account of the eclipse configuration.

V. Configuring eclipse

1, first, open the configuration Interface window->preferences. If these plug-ins are installed successfully, the list on the left should have Lomboz and Tomcat options. If not, check that the steps above are correct.

Click Java->installed JREs, and then display as above, if it is initially installed, only display the first JRE (don't ask me what is JRE, I look for information to go), that is the system defaults installed in the C-disk JRE, if the system has multiple JDK installed, Then it's best to create a new one, click Add, then select the location of the JDK you need to use, and then it will automatically look for other parameters and click OK. After you return to the interface, don't forget to select the JDK you just added, or it won't work. Then click OK to close this window.

2, open the Configuration interface again, click Tomcat option

Here is the parameter for configuring Tomcat, depending on the version of Tomcat you installed, select Tomcat, and then the home directory of Tomcat is found, entered at Tomcat House, the following parameters are automatically configured, click Apply. Then select advanced on the left side, also copy Tomcat's home directory to Tomcat base, and click Apply.

Finally select the JVM setting on the left, select the JRE just joined, click Apply, click OK. That's it. Back to the interface, click on the toolbar of the yellow Kitten icon, if configured correctly, in the console should have to start Tomcat information. If so, it means the Tomcat configuration is successful.

1, Lomboz basically do not have any configuration, if the left side of the Lomboz option, is basically a success. Click Lomboz, then select the Tools.jar in the JDK that you just configured, so the configuration is complete. The test method is to create a new JSP file to see if the script code has a special display when open, and build a test class to see if the JSP can automatically reference the 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.