JDk download and configuration environment variable Path

Download and install JDK

download link

Open the URL will show below, you can click DOWMLOAD:

When the page appears, click to accept:

2

Selecting a corresponding installation package can be downloaded (I am using Windows64 bit):

NOTE: If you are not sure your windows version, you can right-click on the "Computer Properties" to view system information:

After the download is complete, click on the exe file to run:

4

Follow the instructions to install:

5

Note: generally only need this path to default, no need to be replaced.

When this screen appears, the setup is complete, you can shut down.

6

Path environment variable configuration

Environment variable is an object in an operating system with a particular name, it contains one or more application programs will use the information.

Path is a common environment variable tells the operating system, when the system is required to run a program and it does not tell the full path where, in addition to the system to find this program in the current directory, but also to the next which directories to find.

The following is the specific steps set Path variable

  • Right Computer -> Properties -> Advanced System Settings, the following interface appears, click the environment variable settings

  • 8

  • FIG operation occurs main interface environment variables

  • Click the New button to create JAVA_HOME variable (for instructions JDK installation directory), just before coming into the jdk installation directory like:

  • Modify the system environment variables Path, in front of an additional% JAVA_HOME% \ bin

  • 11 (2)

  • note

    1. Windows10 some previous version different configuration may be on the same line, with only between different paths between the different paths ';' (semicolon in English) can be separated.

    2. classpath configuration problems: If you use more than you need to configure the JDK1.5 environment variable! JRE will automatically search for class files in the current directory and related jar files

    When all of the above work is completed, the configuration done for, then we tested.

Test JDK installation was successful

Enter the command line window, the start menu search box, enter "cmd" can be. In the window, enter the command "java -version", Enter. The following results appear, JDK installation was successful.

So now you can start your journey JAVA programming it!

Guess you like

Origin www.cnblogs.com/Java-biao/p/11261837.html