Problem "java" is not an internal or external command, operable program or batch file appears

  • Getting started with springboot cases under the cmd run the test, I did not expect this scene appeared in the following figure

Here Insert Picture Description

My computer environment configuration never altered, I checked the Internet never found erroneous results.

Possible is this:
when you install other programs, path variables are modified, resulting in java command can not be found, and this time only to re-set in the path of the java bin directory path on it

  • Some tips on configuring

    general

  • HOME path environment is the directory where you installed the program, such as:

JAVA_HOME、MAVEN_HOME

  • The PATH environment that bin installation directory of the program, such as:

C:\Program Files\Java\jdk1.8.0_181\bin
E:\apache-maven-3.6.1\bin
D:\mysql\MySQL Server 5.5\bin
E:\php-5.6.40

  • Lib of the classpath environment is installed the program directory, such as:
    Here Insert Picture Description
Description:
  • Configure the computer environment variable when the final selection of the system and user variables is another computer user other users can not use the user-configured environment variables, but the last time the system configuration variables do not easily change.
  • Here Insert Picture Description

Guess you like

Origin www.cnblogs.com/xdr630/p/11404520.html