Installation and configuration of Jdk+eclipse+myeclipse+tomcat

Source: Internet
Author: User
Tags tomcat server

The following software versions I use are: JDK (1.6); Eclipse (3.2.2); MyEclipse (5.5.1GA); Tomcat (5.5.12);

First, install the JDK:

After downloading the JDK (1.6), double-click to install, all configurations remain the default option during installation. After installation is complete

Configure the JDK environment variable after installation: Go back to the desktop, and on the My Computer, right-click Properties, Advanced, environment variables (N).

New system variable Java_home:c:\program files\java\jdk1.6.0_02;

New system variable classpath:.; %java_home%\lib;%java_home%\lib\tools.jar; (Note: The dot indicates the current directory and cannot be omitted)

Add the following in front of the value of the system variable path:%java_home%\bin;%java_home%\jre\bin; (note: semicolons cannot be omitted here.)

This completes the JDK installation configuration. We can now test if the JDK installation configuration was successful. Click Run in the Start menu of the system, enter CMD, and then run Java-version (there is a space after Java). The configuration as shown below indicates success. (I tested jdk1.7, although can be configured to succeed, but the MyEclipse open when the old error, preliminary judgment jdk1.7 some version myeclipse use, it may be myeclipse version of the reason for it)

Ii. installation of Tomcat

After downloading Tomcat5.5.12.zip, unzip directly to the D packing directory.

Finally configure the environment variables for Tomcat: On the My Computer, right-click Properties, Advanced, environment variables (N).

New system Variable catalina_home:d:\tomcat-5.5.12

After the value of the system variable classpath, add:%catalina_home%\common\lib;

In the value of the system variable path, "%java_home%\jre\bin;" after adding the following:%catalina_home%\bin;

To this tomcat configuration is complete. (Note: After the tomcat with the myeclipse associated with the time do not open the firewall, after testing, I opened in the case of rising firewall through the MyEclipse start Tomcat start not up ... )

Third, install Eclipse:

After you download Eclipse 3.2.2.zip, unzip it. The position I placed is:

The eclipse installation is complete at this time.

Iv. Installation of MyEclipse:

After downloading the Myeclipse5.5.5.1ga.exe, create a new one named MyEclipse folder in the D disk before installing, and then double-click to install. Install to as shown, you will be prompted to select the path, we can choose just new MyEclipse folder.

The process of installing myeclipse may be slow, and you need to wait patiently.

After the installation is complete as shown:

MyEclipse after the installation is complete, we only need to pay attention to the red circle in the folder. There are two folders in the Eclipse folder in this folder, as shown in:

The real purpose of our installation of MyEclipse is to get these two folders. Copy the two folders to the previous Eclipse installation directory to overwrite the original files (be sure to replace the overwrite, do not delete the original file after pasting). Finally uninstall the MyEclipse that you just installed.

Explain the reasons for doing this: because MyEclipse is a plugin for Eclipse, Eclipse will automatically recognize these plugins by overwriting the 2 directories of features and plugins to the installation directory of Eclipse. Here MyEclipse installation is complete.

Five, Chinese, crack myeclipse

Run Eclipse.exe (Specify workspace for first run), click window----> Preferences---->myeclipse---->subscription----> Enter Subscription, type the registration name and the registration code generated by the Registrar.

MyEclipse5.5.1 Registration Code
Subscriber:www.1cn.biz
Subscriber code:jlr8zc-655355-5450765457039125
Or
Subscriber:www.1cn.biz
Subscriber code:jlr7zl-655355-5450755330522962
Subscriber:www.1cn.biz
Subscriber code:jlr8zc-444-55-4467865481680090

subscriber:myeclipse5.5
Subnullion code:zlr8zc-850444-5453675708725833

Here's the break.

Download ecplise3.2.2 package, unzip the features and plugins these 2 directories to Eclipse's installation directory can be achieved in Chinese.

Vi. specifying the Eclipse+myeclipse JRE and Tomcat server

1. Setting the Eclipse+myeclipse JRE

In general, eclipse can automatically find the JRE, and we don't have to make too many settings.

2. Set the Eclipse+myeclipse Tomcat server:

Just set the two places noted in the diagram, and the rest of the diagram is automatically generated. Window--------Preferences

Here, all of our development environments are configured.

Seven, Test JDK+ECLIPSE+MYECLIPSE+TOMCAT development environment is built successfully

1. In eclipse, tap File----> New----> Project, and in the New Project dialog box that pops up, tap myeclipse---->java Enterprise Projects---->web Project ", click" Next ", enter the project name" Test "in" Project name "and the last point" Finish ".

2. Click "Test" in the Package Explorer list on the left of Eclipse to expand the project test. Right-click WebRoot----> New----> JSP to create a new JSP page named hello.jsp. Code such as (the callout part of the figure we need to manually add, the rest of the system is automatically generated):

3. Deploy (Deployment) project.

Click the Deploy button (the button with the red line is the Deploy button) and click Add in the popup window to deploy the test project ().

4. Start the Tomcat server.

As shown (a button drawn with a red line is the button that launches Tomcat):

5, the project test results of the operation:

To launch the browser, enter http://localhost:8080/test/hello.jsp in the Address bar, as shown below for the configuration success:

We can go to Eclipse's workspace directory to see the code of the test project, or go to Tomcat's WebApps directory to see the structure of the test project after deployment.

Add: Eclipse uses the link method to load Chinese and myeclipse plugins

If the Chinese package plug-in or MyEclipse plug-in directory is D:\eclipse Package\eclipse, that is, the Eclipse packages directory structure is: D:\eclipse package\eclipse\features and D:\ Eclipse Package\eclipse\plugins (This Eclipse folder must have, the plug-in package features and plugins must be placed under the Eclipse folder, this Eclipse folder only needs to have these two plug-in packages enough! Note: The path of the plug-in can not be the Chinese character can only be English, that is: D:\eclipse package\ my plugin \eclipse\plugins).

Suppose eclipse now has the installation path: D:\eclipse. Create a new Links folder in the root directory of Eclipse, D:\eclipse\links. Create a new text file under the Links folder, with the file name randomly (not kanji), and change its extension to link. For example: D:\eclipse\links\login.link. The contents of this file are: Path:d:/eclipse package. When Eclipse starts, the program automatically loads the plug-in package based on the file. If you do not need to load the plug-in package, simply delete the Login.link file.

Additional notes:

1. Plugins can be installed in multiple custom directories.

2. The link file can have multiple lines of path= plug-in directory, corresponding to multiple custom plug-in directories, each line of the path parameter will take effect. Only one directory can be specified for a path.

3. There can also be multiple link files in the links directory, and the path parameter in each link file will take effect.

4. The plug-in directory can use a relative path, if we create the Eclipse package directory in the Eclipse installation directory, as in the D:\eclipse directory in the example above, you only need to set the Path=eclipse

5. When you set the path path value for the link file, you can only use/or \ \.

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.