Build eclipse+myeclipse development environment

Source: Internet
Author: User
Tags command line version variable win32 window zip tomcat tomcat server

   First, install the JDK

First download the JDK 5.0 (JDK 5.0 download page is:http://java.sun.com/j2se/1.5.0/download.jspAnd then run JDK 5.0 Installer Jdk-1_5_0_06-windows-i586-p.exe, all the options remain the same during setup, and the environment variables for JDK are finally configured: right-click-> "Properties"-> "Advanced"-> environment variable (N) ".



New system variable Java_home:c:\program files\java\jdk1.5.0_06;

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

In the value of the system variable path.FrontAdd the following:%java_home%\bin; (Note: This semicolon cannot be omitted)

Here, the JDK is installed.

Let's test whether the JDK was installed successfully:

Copy the following contents to Notepad:

public class Hellojava
{
public static void Main (String srg[])
{
System.out.println ("Hello java!");
}
}

Save As "Hellojava.java" (without quotes, below), and save to D-packing directory.

At the command line, enter the command labeled by the Red line in the following figure:



If the content indicated in the red box above appears, the JDK installation is successful!

Note: If you later install an integrated development environment such as Eclipse, Borland JBuilder, JCreator, IntelliJ idea, and so on (ide,integrated Development Environment), You should compile a simple HelloWorld program in the IDE to ensure that the IDE recognizes the location of the JDK.

   second, the installation of Tomcat

To download Jakarta-tomcat-5.0.30.zip First, the benefit of downloading a free installation version is that you can use multiple tomcat (jakarta-tomcat-5.0.30.zip download pages for:

http://apache.linuxforum.net/tomcat/tomcat-5/v5.0.30/bin/);

The jakarta-tomcat-5.0.30.zip is then extracted directly to the D-Packing directory:



Finally configure the Tomcat environment variable: On my Computer, right-click-> "Properties"-> "Advanced"-> "Environment variable (N)".

New system Variable catalina_home:d:\jakarta-tomcat-5.0.30

In the value of the system variable ClasspathbehindAdd:%catalina_home%\common\lib;

In the value of the system variable path "%JAVA_HOME%\BIN;" OfbehindAdd the following content:%catalina_home%\bin;

Here, tomcat installation is complete.

After you have completed the one or two-step setup, the values for each system variable are as follows:

Java_home:c:\program files\java\jdk1.5.0_06
catalina_home:d:\jakarta-tomcat-5.0.30
CLASSPATH:.; %java_home%\lib;%catalina_home%\common\lib;
Path:%java_home%\bin;%catalina_home%\bin;%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem

   Third, install eclipse

First download eclipse-sdk-3.1.2-win32.zip (eclipse-sdk-3.1.2-win32.zip download address is:

http://www.eclipse.org/downloads/);

The eclipse-sdk-3.1.2-win32.zip is then extracted directly to the D-Packing directory:



Here, Eclipse is installed.

   iv. installation of MyEclipse

First download Enterpriseworkbenchinstaller_4.1.1ga_e3.1.exe (Enterpriseworkbenchinstaller_4.1.1ga_e3.1.exe's download address is:
http://www.myeclipseide.com/ContentExpress-display-ceid-10.html);

Then install Enterpriseworkbenchinstaller_4.1.1ga_e3.1.exe. Note: When you install to the steps shown in the following illustration, choose the installation path for Eclipse (figure), and the other options remain the default.



After installation, cover the 2 directories of features and plugins under the MyEclipse installation directory to the Eclipse installation directory.

Finally, uninstall the MyEclipse that you just installed.

Explain why this is done: Because MyEclipse is an Eclipse plug-in, eclipse will automatically recognize these 2 directories as long as they are covered by the features and plugins directory in the Eclipse installation directory.

Here, the MyEclipse installation is complete.

   v. Crack MyEclipse

Run MyEclipse4.1.1 Registration Machine MyEclipseKeyGen.exe, select the MyEclipse version number, enter the registration name, generate serial number. (The download address of myeclipse4.x registration machine is:

Http://esoft.g8.com.cn/UploadFiles/2006-5/520753587.rar

Run Eclipse.exe (First run requirements specify workspace), click window----> Preferences---->myeclipse---->subscription----> Enter Subscription, entering the registration name and registration code generated by the Registrar.

Here, MyEclipse cracked.

   Vi. Specify Eclipse+myeclipse JRE and tomcat servers

1. Set the Eclipse+myeclipse JRE

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

2. Set the Eclipse+myeclipse Tomcat server

The rest of the diagram is automatically generated by simply setting the two annotations in the diagram.



Here, our Eclipse+myeclipse development environment has been built!

   VII. Create a new project to test the success of the Eclipse+myeclipse development environment

1. In Eclipse, click "File----> New----> Project" and click "Web Project---->myeclipse----> In the New Project dialog box that pops up." Java EE Projects---->web project, then 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 called hello.jsp. The code is as follows (the callout section of the figure needs to be added manually, and the rest is automatically generated by the system):



3. In the same way, create a new JSP file called hello_result.jsp, the code is as follows:



4. Deploy (Deployment) project.

Click the Deploy button (the button that you drew with the red line is the Deploy button), click Add in the pop-up window, and deploy the test item (shown below).



5. Start the Tomcat server.

As the following illustration shows (a button that is drawn with a red line is the button that starts Tomcat):



Tomcat boot output information is as follows:



6. Results of Project Test run:



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



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.