Home >Java >javaTutorial >How to solve win7 java is not an internal or external command

How to solve win7 java is not an internal or external command

王林
王林forward
2023-05-05 13:52:061537browse

Solution:

1. Firstcheck whether jdk and jre have been installed successfully. If you still cannot configure it after the installation is completed, please perform the following operations.

win7 java不是内部或外部命令如何解决

2. Open the environment variable settings, then find [JAVA_HoME] to edit, and put the variable value into your installation location, for example: [d:\program Files (x86)\Java\jdk1.7.0_60】

win7 java不是内部或外部命令如何解决

3. Then find [CLAsspATH]. Enter 【.;%JAVA_HoME%\lib\dt.jar;%JAVA_HoME%\lib\tools.jar;】

win7 java不是内部或外部命令如何解决

4. Then open [pATH] and enter [%JAVA_HoME%\bin;]. Then after confirming and saving, you can perform normal configuration and use.

win7 java不是内部或外部命令如何解决

The above is the detailed content of How to solve win7 java is not an internal or external command. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete