简体   繁体   中英

Installed Java on Windows 10, Environment Variable Path Setup, throwing error

I have installed Java on a Windows 10 system.

java --version works fine as it can show the Java version.

However, when running anything Java-related, the following error is thrown:

error: could not find java in JAVA_HOME or bundle at C:\Program Files\Java\jdk-14.0.1\bin/bin/java

I am not sure what is wrong with the configurations.

Below are the attached screenshots:

错误截图环境变量截图

尝试使用 java_home 而没有 /bin

Try without the Bin. Then it should work!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM