Java Win server2008 Configuration and testing of X64-bit JDK environment variables

Source: Internet
Author: User
Tags java se

Installation Preparation:
1. JDK Software (Java SE Development Kit 8).  Note 64 bits. : http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Installation:

Install JDK, default parameters.

Configuration:

1. Create a new system variable

Select New System Variable--pops up the new System Variable dialog box, enter "Java_home" in the Variable name text box, and enter the installation path for the JDK in the Variable value text box.

Example: C:\Program files\java\jdk1.6.0_10

2. Path variable increment value

View the path variable in the system Variables options area, and if it does not exist, create a new variable path, otherwise select the variable, click the Edit button, and add "%java_home%\bin;%java_home%\jre\bin;" At the beginning of the Variable Value text box. or direct "%java_home%\bin;", click the OK button. It is recommended that you copy to Notepad for editing.

3. Increment of CLASSPATH variable value

View the CLASSPATH variable in the system Variables options area, and if it does not exist, create a new variable classpath, otherwise select the variable, click the Edit button, and add "in the start position of the Variable Value text box."; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; ".

Test:

Go to cmd as Administrator, enter the following three parameters test, if there is print information, the surface JDK running environment is successful.

Three commands:

Java-version

Java

Javac

Note that the value of the variable is not lost.

Java Win server2008 Configuration and testing of X64-bit JDK environment variables

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.