Configuration of the Eclipse+jdk+tomcat+myeclipse

Source: Internet
Author: User
Tags tomcat server apache tomcat

First, download the appropriate software:
JDK, Eclipse, Eclipse Multi-country language pack (preferably two versions consistent, otherwise the Chinese effect is not very good), Web server tomcat,myeclipse.

The five files that I used are as follows:
Jdk-6u13-windows-i586-p
Eclipse-sdk-3.2.1-win32
Nlpack1-eclipse-sdk-3.2.1-win32
tomcat5.0.28
myeclipseenterpriseworkbenchinstaller_5.0.1ga_e3.2
Second, the installation of the JDK process:
1. Installing the JDK
Assuming that the Java folder is installed under the D-Disk, after the installation is complete, the following two folders are created, respectively, to store the JDK and JRE.

2. Setting the JDK environment variable
① My Computer-Properties-System Properties-Advanced tab-click the Environment Variables button
② click on "New" button in "System variable"
Variable name: java_home
Variable Value: D:\Java\jdk1.6.0_13
Click the "OK" button.
③ continue to click on "New" button in "System variable"
Variable name: CLASSPATH
Variable value:.;D: \ Java\jdk1.6.0_13\lib\tools.jar (Note the ".;" in the value) Must not be less)
Click the "OK" button.
④ find the "Path" variable in "System variables" and click the "Edit" button.
Precede the "variable value" with this command D:\Java\jdk1.6.0_13\bin;
Click the "OK" button to complete the configuration.
3. Inspection configuration
① in the Command Prompt window, enter the "java-version" command, and the version information appears, consistent with the installed JDK version, proving that the environment variable is configured successfully.
Note in the command, there is a space behind Java.
② is tested with examples.
To create a new Notepad, enter it in Notepad:

  public class test{  public static void main(String[] args)  {System.out.println("hello");  }  }

Name Notepad Test.java, save it. Suppose you save it under the F-disk.
Then click: Program--run--input cmd, enter--In the command prompt window
Input: F: Return
Input: Javac Test.java, if compiled successfully
Re-enter: Java test

Additional:
Dir: View information
CD: Open under Current file
F: Open F Drive
Type file name: View file specific information
Third, install the Tomcat process:
1. Install Tomcat
Run the downloaded tomcat-5.0.28 directly to install Tomcat according to the usual program installation procedure, which automatically looks for the location of the JDK when it is installed, such as installing to the D:\Tomcat 5.0 folder.
2. Configuring Tomcat's environment variables
As with the previous JDK environment variable configuration, add a new environment variable to the "System variable" and click on the "New" button.
Variable name: tomcat_home
Variable Value: D:\Tomcat 5.0 (Note: The variable value is the installation path of Tomcat)
3. Start and test the Tomcat server
Start-Program--apache Tomcat 5.0--start Tomcat open Tomcat Monitor
Open the browser, type the address http://localhost:8080 to test, and if the Tomcat installation succeeds, the following page appears:

4. Testing JSP Web page
Create a new text document, enter the following code, and Save as test.jsp (note the extension. jsp).

<HTML><HEAD><TITLE>JSP测试页面</TITLE></HEAD><BODY>  安装成功           </BODY>      </HTML>

Save this file under D:\Tomcat 5.0\webapps\root
Open the browser and enter http://localhost:8080/test.jsp in the address bar
Iv. installation of the eclipse process:
1. Install Eclipse
Unzip it to the Eclipse folder on the D-Drive.
Double-click Eclipse.exe to run, in the Workspacelauncher dialog box that appears, fill in "E:\workspace", and select "Use this as the default and does not ask again".
Close the running Eclipse
2. Install Eclipse Multi-Country language pack
① unzip it into the D:\eclipse\language directory. The Multi-language pack contains an Eclipse directory under the features and plugins directories, as follows:
② Create a new links directory under the D:\eclipse directory, where you create a new Language.txt file with the contents of
Path=e:\eclipse\language
③ Save the Language.txt file and restart Eclipse.
V. Installation of MYECLIPSE process:
http://thunderbow.javaeye.com/blog/411367
Follow the general program installation steps to install, in which to select the path of the installed Eclipse, note to select D:\eclipse, then click Next, after the installation is successful, open Eclipse, you will find that the Eclipse menu appears my eclipse As follows:

Vi. binding the Tomcat server to my eclipse
① open Eclipse, choose Window-Preferences-My Eclipse-Application Servers-Tomcat 5,
② the Registration window will appear first, because my eclipse, which is downloaded on the website, is typically 30 days trial. At this point, disconnect the network, and then in the registration window that appears, fill in the following information:

③ The following configuration options appear after registration, select each configuration as follows:

10. Tomcat server in mid-eclipse
Select the middle button in the Eclipse's toolbar and select "Tomcat 5"-"Start" in the drop-down menu that appears, and the console view after successful startup is as follows:
At this point, everything ok!

Configuration of the Eclipse+jdk+tomcat+myeclipse

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.