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!