First, install the JDK
First download the JDK 5.0 (JDK 5.0 download page is:
JSP "target=" _blank ">http://java.sun.com/j2se/1.5.0/download.jsp);
Then run JDK 5.0 installer Jdk-1_5_0_06-windows-i586-p.exe, and all options remain the same during the installation process;
Finally configure the JDK's environment variables: On my Computer, 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\dt.jar;%java_home%\lib\tools.jar (Note: The point number indicates the current directory and cannot be omitted)
Before the value of the system variable path, add the following:%java_home%\bin; (note: The semicolon here 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:
Here, tomcat installation is complete.
RELATED links:
Tomcat 4 and Tomcat 5 installation Configuration Guide
Tomcat 5.5 Installation Configuration Guide
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://downloads.myeclipseide.com/downloads/products/eworkbench/4.1.1GA/EnterpriseWorkbenchInstaller_4.1.1GA_E3.1.exe);
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)
Click to download this file from this site
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.
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.