You need to configure your environment variables, JAVA_HOME
and PATH
.
JAVA_HOME
must contain the path to java, and you should add %JAVA_HOME%in to PATH
Alternatively, you can simply add to your PATH
the whole path to the bin folder, without the JAVA_HOME
variable, however, this makes a little more annoying when you need to have more than one java version on your machine (that way you only need to change JAVA_HOME
and don't even bother with PATH
)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…