Download and install eclipse and configure myeclipse download and install and configure Tomcat

Source: Internet
Author: User

I got the configuration for one afternoon yesterday and finally got it done. I also got to know eclipse myeclipse Tomcat again. So let's just talk about it. Let's get started!

 

========================================================== ==============================================
First, we need to clarify several concepts. An in-depth understanding of these concepts will greatly help your Configuration:
1,JDK(Java
Development Kit) is a product developed by Sun Microsystems for Java developers. Since Java was launched, JDK has become the most widely used Java
SDK. JDK is the core of Java, including the Java Runtime Environment, Java tools, and Java-based class libraries. JDK is the first step to learn java well. ①

2,SDK(Software development kit)
In a broad sense, it refers to the collection of documents, examples, and tools that assist in the development of a certain type of software. Generally, sdks are used to develop applications on the Windows platform.ProgramThe SDK used.

3,J2EEJava2 Platform Enterprise Edition (Java 2 platform, Enterprise Edition)
Currently, Java 2 platform has three versions, which are applicable to small devices and smart cards. Java 2 platform Micro Edition (Java 2 platform micro
Java 2 platform Standard Edition for desktop systems (Java 2 platform standard)
Edition, j2se), applicable to creating server applications and services Java 2 Platform Enterprise Edition (Java 2 Platform Enterprise
Edition, J2EE ).

 

That is to say, J2EE, j2se, and J2EE are all JDK versions:

Se (j2se), Standard Edition, Standard Edition, is a common version. It has been renamed Java since JDK 5.0.
Se.
EE (J2EE), Enterprise Edition, and Enterprise Edition, which are used to develop J2EE applications. It has been changed from JDK 5.0 to Java
Ee.
Micro Edtion, which is mainly used for Java applications on mobile devices and embedded devices. It has been renamed Java me since JDK 5.0.

4,IDE= Integrated development environment: an integrated development environment that can assist in program application development. Integrated Development Environment (IDE) is an application used in the development environment.CodeEditor, compiler, debugger, and graphical user interface tools. The program can run independently or with other programs. For example, the basic language can be used in Microsoft Office software and wordbasic programs can be compiled in Microsoft Word documents. IDE uses Visual
Basic, Java, PowerBuilder, and other modernProgramming LanguageProvides convenience.

5,MyeclipseEnterprise-level work platform (myeclipse enterprise Workbench)
(Myeclipse) is
With the extension of IDE, We can greatly improve work efficiency in the development and release of databases and J2EE, as well as the integration of application servers. It is an integrated development environment with rich functions such as coding, debugging, testing, and publishing. It supports HTML,
Struts, JSF, CSS, JavaScript, SQL, and hibernate.

In short, myeclipse is an Eclipse plug-in and a powerful J2EE integrated development environment. It supports code writing, configuration, testing, and debugging. Eclipse must be installed in versions earlier than myeclipse6.0. You do not need to install eclipse when installing myeclipse6.0 or later.

The release of 7.0 means that we no longer need to configure Tomcat and servers. All you need to do is install myeclipse
7.0. The 7.0 release includes bug fixes and feature enhancements on the basis of 7.0m2 and 6.6. Supported by: Eclipse 3.4.1/Ganymede, rest
Web service, new myeclipse operation board, spring Tool Set Update, integration of manven2, open
JPA support, advanced JavaScript tools, professional jsdt implementation, report tool enhancements, JSF and icefaces tool updates.
Later versions will not be introduced, see: http://www.myeclipseide.com/official website (has been closed to Chinese users ).

② Provide this version for everyone to use (Integrated eclipse3.4 edition): http://downloads.myeclipseide.com/downloads/products/eworkbench/7.0M1/MyEclipse_7.0M1_E3.4.0_Installer.exe

6,EclipseThis is not much to say,
Download link: Official English version link new ~ Chinese version 3.2

7,TomcatJakarta of the Apache Software Foundation
A core project in the project is developed by Apache, sun, and other companies and individuals. With Sun's participation and support, the latest Servlet and JSP
The specifications can always be reflected in Tomcat. Tomcat 5 supports the latest servlet 2.4 and JSP 2.0 specifications. Because Tomcat
Advanced technology, stable performance, and free of charge. Therefore, it is favored by Java enthusiasts and recognized by some software developers and has become a popular Web application server. At present, the latest version is 6.0.

③ Latest Version: Tomcat new ~

8,JRE(Java Runtime Environment(Java Runtime Environment), a set of environments required to run Java programs, including JVM standard implementation and Java core class libraries.

JRE is short for javaruntimeenvirment. javaruntimeenvironment (including javaplug-in) is a sun product. It consists of javaruntimeenvironment and javaplug-injavaruntimeenvironment (JRE) is a Java platform on which applications can be run, tested, and transmitted. It includes Java virtual machine, Java platform core class, and support files. It does not contain development tools-compilers, debuggers, and other tools. JRE needs the auxiliary software javaplug-in to run the applet in the browser.

9. Then there are several small concepts (or English phrases): API (Application Programming
Interface, Application Programming Interface) is a number of pre-defined functions, the purpose is to provide applications and developers based on a software or hardware to access a set of routines, without accessing the source code or understanding the details of the internal working mechanism. Plug, plug-in, plug-in. Deploy
[Di 'pl0i] vt. deployment, transfer.

========================================================== ========================================================== =

What we need to do is download them separately (the first part has provided you with a download link, marked in red circles as 123 ):
① JDK
We will not go into details about environment variable settings here. If you do not know this, we recommend that you lay a good foundation for Java and continue. However, here I also provide the JDK environment configuration process.
② Myeclipse
The version I provided is myeclipse7.0 (integrated with eclipse3.4). Therefore, it is exempt from installing myeclipse on the eclipse ontology.
Plug problems. Of course, some tutorials will select the latter. For convenience, we recommend that you use the version I have provided.
③ Tomcat is not much to mention. Let's see how to configure it!

The following describes how to configure:

1. Install JDK

First download the latest version (if you want to download JDK, we will call it JDK );JDK 6.0(JDK
6.0: Click to download), and then run JDK
6.0 setup jdk-6u18-windows-i586, keep all options by default during installation; finally configure JDK environment variables: Right-click on my computer-> properties-> advanced->
"Environment variable (n )".

Create a system variable java_home: C: \ Program
Files \ Java \ jdk1.5.0 _ 06;

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

In the PATH value of the system variableFrontAdd the following content: % java_home % \ bin; (Note: The semicolon here cannot be omitted)

Here, JDK installation is complete.

Next we will test whether JDK is successfully installed:

Copy the following content to notepad:

Public
Class hellojava // The first letter of the class should be capitalized.
{
Public static void main (string
SRG [])
{
System. Out. println ("Hello
Java! ");
}
}

Save it as "hellojava. Java" (without quotation marks, the same below) and save it to the root directory of drive D.

Enter the commands marked by the red line in the command line in sequence:

If the content marked in the red box appears, the JDK is successfully installed!

Note: If you want to install
Integrated development environments such as JBuilder, jcreator, and intellij idea
Environment), you should compile and run a simple helloworld program in the IDE to ensure that the IDE can identify the JDK location.

Ii. install Tomcat

The download page of the secret is:

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

Then, unzip jakarta-tomcat-5.0.30.zip to the root directory of drive D:

Finally, configure Tomcat environment variables: Right-click "my computer" and choose "properties"> "advanced">
"Environment variable (n )".

New system variable catalina_home: D: \ jakarta-tomcat-5.0.30

In the system variable classpath ValueBackAdd: % catalina_home % \ common \ Lib;

In the PATH value of the system variable "% java_home % \ bin ;",BackAdd the following content: % catalina_home % \ bin;

At this point, tomcat installation is complete.

After completing step 1 and step 2, the values of the system variables 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 % \ system32 \ WBEM

3. Install myeclipseNote: For MySQL 7.0, seeOriginal installation directoryDo not modify the installation.

Double-click Install: myeclipse_7.0m1_e3.4.0_installer

The installation process is similar to that of eclipse. I will not repeat it here. After you install it in the next step, a dialog box for setting up the workspace will pop up. You can set your workspace. Please note that you will be prompted for registration when you use it for the first time. Here is the method for cracking registration (both methods are available, and the latter is recommended): 1. Registration Code method 2. New Cracking Method

4. Specify the JRE and tomcat of myeclipse (Integrated eclipse)
Server

Open myeclipse7.0
Choose WINDOW> preferences> myeclipse> servers> Tomcat> tomcat.
6. x-> JDK.
Then, set the two parts marked in the graph. The rest of the graph is automatically generated. Figure below:

At this point, our eclipse + myeclipse + Tomcat development environment has been set up!

5. Create a project to test whether the eclipse + myeclipse + Tomcat development environment has been set up successfully.

1. In eclipse, click"
File ----> New ----> Project ", click" WEB Project "in the pop-up" new project "dialog box.
----> Myeclipse ----> J2EE projects ----> Web Project ", click" Next ",
In name, enter the project name "test" and click "finish ".

2. Package on the left of eclipse
Click "test" in the explorer list to expand the project "test. Right-click webroot ----> New ----> JSP,
Create a new JSP page named hello. jsp. Code example (we need to manually add the marked part in the figure, and the remaining part is automatically generated by the system ):

3.
In the same way, create a new JSP file named hello_result.jsp. The Code is as follows:

4.
Deploy (deployment) project.

Click the deploy button (the red line is the deploy button), and click Add in the pop-up window,
Deploy the test project ().

5.
Start the Tomcat server.

As shown in (the button drawn with the red line is the button for starting Tomcat ):

Tomcat
The startup output information is as follows:

6. Project test running result:

We can go to the eclipse workspace directory to check the code of the test project, or go to the Tomcat webapps directory to check
The structure of the test project.

========================================================== ======================================

You can install the corresponding version on your own.

welcome to the discussion and criticism of Java fans!

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.