Home >Java >javaTutorial >How to install jdk

How to install jdk

伊谢尔伦
伊谢尔伦Original
2016-11-21 11:50:522069browse

1. Check whether the computer is configured with a jdk environment: Find [Run] in [Attachments], enter [cmd], enter [Java] and press Enter. If it returns "'java' is not an internal or external command and is not runnable. program or batch file." means the computer does not have a jdk environment.

2. To install jdk, you can download jdk online. Here I uploaded a jdk1.7.

After the installation is complete, open My Computer --->Properties Panel

Select Advanced System Settings

Select Environment Variables

Set in the System Variables section:

New System Variables:

Variable Name: [ JAVA_HOME]

Variable value: [C:Program FilesJavajdk1.7.0_51]

Special note: My jdk is installed at this location C:Program FilesJavajdk1.7.0_51 so fill in this, where is your own jdk installed? , just fill in whatever you want!

Find Path in the system variables and select edit:

Add [;%JAVA_HOME%bin;] at the end

Special note: Add it at the end, be sure not to delete the default one! If you delete it, some of your programs will no longer be able to run!

3. Check whether the installation is successful: Find [Run] in [Attachments], enter [cmd], enter [Java] and press Enter. If

is displayed, it means that the Java environment has been configured and the Java program can be run.


Statement:
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