Home >Java >javaTutorial >How to solve win7 java is not an internal or external command
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.
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】
3. Then find [CLAsspATH]. Enter 【.;%JAVA_HoME%\lib\dt.jar;%JAVA_HoME%\lib\tools.jar;】
4. Then open [pATH] and enter [%JAVA_HoME%\bin;]. Then after confirming and saving, you can perform normal configuration and use.
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!