Home > Common Problem > body text

Java environment variable setting tutorial

尊渡假赌尊渡假赌尊渡假赌
Release: 2023-07-04 13:41:20
Original
1665 people have browsed it

Java environment variable setting tutorial

The following is a detailed Java environment variable setting tutorial:

  1. Download the Java JDK (Java Development Kit) installer and run the installer. You can download the Java JDK version for your operating system from Oracle's official website (https://www.oracle.com/java/technologies/javase-jdk11-downloads.html).

  2. The installation program will prompt you to select the installation path. Make a note of this path as you will need it later.

  3. Open Control Panel (you can select Control Panel through the Start menu or by pressing the Win X key).

  4. In Control Panel, select "System and Security". In the "System and Security" option, click "System".

  5. On the "System" page, click "Advanced System Settings". In the "System Properties" dialog box, click the "Environment Variables" button.

  6. In the User Variables or System Variables section, click New. Enter the following variable names and values: Variable Name: JAVA_HOME Variable Value: Java JDK installation path (the path noted in step 2) Click "OK" to save the changes.

  7. Find the variable named "Path" in the "System Variables" section and click "Edit".

  8. In the "Edit Environment Variables" dialog box, click "New" and enter the following: %JAVA_HOME%\bin OK to save all dialog boxes.

  9. Open the command prompt and enter the "java -version" command to verify whether Java is successfully configured.

The above is the detailed content of Java environment variable setting tutorial. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template