Home  >  Article  >  Java  >  Solution to the problem that the java path cannot be found

Solution to the problem that the java path cannot be found

王林
王林Original
2019-11-12 09:16:255475browse

Solution to the problem that the java path cannot be found

Reason: The

path contains Chinese characters. It is recommended not to modify the default path of jdk during the default installation, and then configure the environment variables.

Solution:

For example: jdk is installed in "D:\Program Files\jdk1.7.0_10"

Step one: Create a new " java_home" value, enter "D:\Program Files\jdk1.7.0_10";

Step 2: Create a new "classpath" value, enter ".;%java_home%\lib";

Step 3: Add "%java_home%\bin" to the path;

Note: To configure environment variables, right-click "Properties" on "Computer", and then select "Advanced Environment Variables" ” and select “Environment Variables”.

Recommended tutorial: java tutorial

The above is the detailed content of Solution to the problem that the java path cannot be found. For more information, please follow other related articles on the PHP Chinese website!

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