Build eclipse + MyEclipse development environment


1、 Install JDK
First download JDK 5.0 (the download page of JDK 5.0 is:
jsp” target=”_blank”>;
Then run the JDK 5.0 installer jdk-1_ 5_ 0_ 06-windows-i586-p.exe, all options remain default during installation;
Finally, configure JDK environment variables: right click my computer – > properties – > Advanced – > environment variables (n).

New system variable Java_ HOME:C:\Program Files\Java\jdk1.5.0_ 06
New system variable classpath:.;% JAVA_ HOME%\lib\dt.jar;% JAVA_ Home% \ lib \ tools.jar (Note: the dot indicates the current directory and cannot be omitted)
Add the following before the value of the system variable path:% Java_ HOME%\bin; (Note: the semicolon here cannot be omitted)
Here, the JDK is installed.
Let’s test whether the JDK is installed successfully:
Copy the following into Notepad:
public class HelloJAVA
public static void main(String srg[])
System.out.println(“Hello JAVA!”);
Save as “hellojava. Java” (without quotation marks, the same below) and save it to the root directory of disk D.
On the command line, enter the commands marked by the red line in the following figure:

If the contents marked in the red box above appear, the JDK installation is successful!

Note: if you want to install integrated development environment (IDE) such as eclipse, Borland JBuilder, jcreator and IntelliJ idea in the future, you should compile and run a simple HelloWorld program in the IDE to ensure that the IDE can recognize the location of JDK.

2、 Install Tomcat
First, Download The advantage of downloading the installation free version is that you can use multiple Tomcat (the download page of is:;
Then unzip directly to the root directory of disk D:

Here, Tomcat is installed.

Related links:
Tomcat 4 and Tomcat 5 installation and Configuration Guide
Tomcat 5.5 installation and Configuration Guide

3、 Install eclipse
First download (the download address of is:;
Then unzip directly to the root directory of disk D:

Here, eclipse is installed.

4、 Install MyEclipse
First download the enterprise workbench installer_ 4.1.1GA_ E3.1.exe (the download address of enterprise workbench installer_4.1.1ga_e3.1.exe is:;
Then install the enterprise workbench installer_ 4.1.1GA_ E3.1.exe。 Note: when installing to the steps shown in the figure below, select the installation path of eclipse (as shown in the figure), and other options remain the default.

After installation, overwrite the features and plugins directories under the MyEclipse installation directory to the eclipse installation directory.
Finally, uninstall MyEclipse that you just installed.
Explain the reason for this: because MyEclipse is an eclipse plug-in, eclipse will automatically recognize these plug-ins as long as the two directories of features and plugins are overwritten to the eclipse installation directory.
Here, MyEclipse is installed.

5、 Crack MyEclipse
Run the MyEclipse 4.1.1 registration machine MyEclipse keygen.exe, select the version number of MyEclipse, enter the registration name, and generate the serial number. (the download address of MyEclipse 4. X registration machine is:
下载文件 Click to download this file from this site

Run eclipse.exe (specify workspace for the first time), click window – > Preferences – > MyEclipse – > subscription – > Enter subscription, and enter the registration name and the registration code generated by the registration machine.
Here, MyEclipse is cracked.

6、 Specify the JRE and Tomcat servers for eclipse + MyEclipse
1. Set JRE of eclipse + MyEclipse
Generally, eclipse can find JRE automatically, and we don’t need to make too many settings.
2. Set the Tomcat server of eclipse + MyEclipse
You only need to set two points marked in the figure, and the rest of the figure is automatically generated.

Here, our eclipse + MyEclipse development environment has been built!

7、 Create a new project to test whether the eclipse + MyEclipse development environment is built successfully
1. Click “file —- > New —- > Project” in eclipse, click “web project —- > MyEclipse —- > J2EE projects —- > Web project” in the pop-up “new project” dialog box, click “next”, enter the project name “test” in “project name”, and finally click “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 named hellojspJSP page. The code is shown in the figure below (the marked parts in the figure need to be added manually, and the rest are generated automatically by the system):

3. Use the same method to create a new one called hello_ result.jspThe code of the JSP file is as follows:

4. Deploy project.
Click the deploy button (the button drawn with a red line is the deploy button), and click add in the pop-up window to deploy the test project (as shown in the figure).

5. Start the Tomcat server.
As shown in the following figure (the button drawn with a red line is the button to start Tomcat):

The output information of Tomcat startup is as follows:

6. Operation results of project test:

We can go to the workspace directory of eclipse to see the code of the test project, or we can go to the webapps directory of Tomcat to see the structure of the deployed test project.

Recommended Today

IOS segmented pop-up window

Recently, I encountered a demand similar to the segmented pop-up window of Gaode map (as shown in the figure below). I didn’t find relevant information on the Internet, so I wrote one myself, hoping to provide you with ideas. Realization effect The idea is that when the pop-up window is in the first segment, add […]