Windows under the Java EE Environment Building

Source: Internet
Author: User
Tags apache tomcat

From 2013 to 2015, I personally undertake the outsourcing project and work in the official company, the individual erection of the Java EE steps are as follows. Install Required Packages: JDK6 + Tomcat6 + Eclipse Luna First step: Install JDK

1: Download the JDK. Address in http://www.oracle.com/index.html "downloads" se "Java Platform"

2: Install the JDK. Customizing the installation directory, note JDK and JRE need to be placed in different folders。 3: Configure the JDK environment variable. My Computer, properties, advanced environment variables Java_home:D:/jdk PATH:%java_home%\bin;%java_home%\jre\bin CLASSPATH:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jartest whether the JDK is installed successfully, run->cmd->d: Enter D, enter Javac see if you can come out a lot of commands, out of the JDK configuration is successful.
Environment variables: environment variables are generally used in the operating system to specify the operating system running environment of some parameters, such as temporary folder location and System folder location. This is a bit like the default path of a DOS period, and when you run some programs, you look in the default path to the settings in addition to looking in the current folder. Simply put, the "path" here is a variable that stores the directory paths that are stored in common commands.
1, configuration Java_home=d:\program files\java\jdk1.6.0_18 Java_home point to the JDK installation directory; Java-developed software such as Eclipse/tomcat is the search for java_home variables to find and use the installed JDK, If you do not configure the Java_home variable, you will find that Tomcat does not start properly.   2, Configuration Path=%java_home%\bin Path points to the Search command paths, and if you do not configure this path variable to point to the JDK's command path, you will find the command line Unable to run Javac, Java and other commands;   3, configuration classpath=.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar Classpah points to the class search path,.; Represents a search in the current directory, because Java programs are often used in the Lib directory Dt.jar and Tools.jar the next class, so these two items also need to be added, if the command line to compile and run the program also needs to use to a third-party jar file, you will also need to include a third-party jar file.

Step Two: Install Eclipse

1: Download. Address in http://www.eclipse.org/"downloads"eclipse IDE for Java EE developers

2: Install. Direct decompression, no installation required, specify the workspace.
Part III: Eclipse Integrated JDK (SE configuration complete)
1:SDK configuration. PreFerences "Java" Installed JREs "ADD" standard VM configuration jdk path.
Fourth: Installation of Tomcat 1: Download. Address in http://tomcat.apache.org/"Download" Binary distributions "32-bit Windows Zip (PGP, MD5) 2: Install. Direct decompression, no installation required。 Fifth: Eclipse integrated tomcat (Java EE configuration complete) in the Eclipse Window menu window Preferences Server Runtime environments Click Add, select Apache Tomcat corresponding version, click Next Click Brower Select Tomcat Extract directory, finish can.

Windows under the Java EE Environment Building

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.