Java Development Environment Configuration (WIN7-64BIT)

Source: Internet
Author: User

Java Development Environment Configuration (WIN7-64BIT) Java Java Development Environment configuration (WIN7-64BIT)

    • Java Development Environment Configuration (WIN7-64BIT)
      • 1. Overview
      • 2. Tools used in the text
      • 3. Environment variable Configuration
      • 4. Testing
      • 5. Precautions

1. Overview
    • Building a Java development environment typically requires installing both the JDK and the JRE.
    • JDK: Java SDK Java Development Kit, required to develop Java programs, contains a subset of the public JRE in the JDK.
    • JRE: A Java runtime Java Runtime Environment, used when running a Java program that has been developed.
2. Tools used in the text

Java SE Basic toolkit: official website download
(Many versions, choose the applicable version, omit the installation process, the next step in the installation time)

3. Environment variable Configuration
    • The JAVA environment variable involves three nouns: java_home, path, classpath.
    • Java_home represents the JDK installation home directory, and path represents the directory of executable files under the JDK, and Classpath represents the directories that need to find the class file when running a Java program.
    • Path configures the location of the JDK command file.
  1. My Computer (right-click) → Properties

  2. Advanced system settings → environment variables

  3. System variable comes with no java_home this variable, you need to edit the following: (variable value is the path of JDK installation)

  4. Path is already present in the system variable, check path→ edit

    –> enter the path of the bin (separated by semicolons)

  5. The system comes with a variable that is not classpath and needs to be added

    → use "." Represents the current path
    → use ";" Separated
    → Enter the path to BIL (e.g. my path is: C:\Program files\java\jdk1.8.0_60\lib)

    Configuration here to the end, remember to press OK, not sure is not to save their own.

4. Testing

Open run Àcmdà input java/javac for verification (the effect of validation is as follows)


If you see this effect, congratulations on your configuration success.

5. Precautions

如果使用1.5以上版本的JDK,不用设置CLASSPATH环境变量,也可以正常编译和运行Java程序。

Java Development Environment Configuration (WIN7-64BIT)

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.