Java Development Environment Building

Source: Internet
Author: User
Tags java se

Review the environment installation process.

Installing the JDK

Configuring the Java Development environment

Configure path and classpath.

I downloaded it on the http://www.oracle.com/. Click downloads--"Java for developers

Click to enter, you can choose the latest JDK version of the JAVA8, you can also download the previous Jdk7

Go to the JDK8 download page, select a version, click on the "Accept License agreement" and click on the system version you want to download. I used the windowsX64 bit to download the 64-bit JDK.

To download the previous JDK you can go back to the download screen and click on the bottom of the Java Archive download

When you click inside, the page looks like.

Click Java SE 7

Will be shown below this page for more download of kit 7u80, download the same as above (JDK 8 installation), select a version, click on the check Accept License agreement, and then click on the system version you need to download.

Click Install directly after download

I habitually, change the path, like can not change, direct default.

  

Wait for the installation.

It installs the JRE immediately after installation

Install for about 3 minutes.

To this installation is complete.

Test whether the installation is complete.

Open cmd command

The input java-version appears on the tablet to illustrate the success.

Configure the environment variables in the system at the same time. Some people feel that eclips does not have to be configured to compile, the configuration path is usually for the tomcat,windows version of the JDK installation will be installed after the path is written to the registry side of the system, many programs are not configured Java_ Home is because the program gets the path to the JDK directly by reading the path to the registry edge.

And Tomcat did not deal with this, Tomcat only found the path of the JDK, in order to compile the servlet/jsp into a. class file, you can run Tomcat is not handled, but simply through the environment variables to get the path of the JDK, So to run Tomcat is generally to configure the environment variables.

Configure path to solve dual-system problems (personal experience)

To the desktop to find the computer, right-click Open menu bar, find properties, click.

Click Advanced System Configuration, pop-up window appears, click on the advanced options in the pop-up environment configuration.

In the system variable click New, variable name fill java_home, variable value fill in the JDK installation path, here to fill C:\Java\jdk1.7.0_80

Then add a classpath variable name, and the variable value is filled ".; %java_home%\lib;%java_home%\lib\tools.jar ". Be careful not to forget the front dot and the middle semicolon

Find the path variable in the system variable, which is the system's own, not new. Double-click Path, because the original value of the variable already exists, it should be preceded by the previous variable with "%java_home%\bin;%java_home%\jre\bin;". (copy or handwriting) pay attention to the following semicolon.

Implement the CMD command, same as above, input javac, appear in the picture, even if the successful configuration completed.

Java Development 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.