简体   繁体   English

无法安装Java JDK 8

[英]Unable to install Java JDK 8

I downloaded the 64 bit JDK from the oracle site (Win7 64bit) and installed it with the install wizard. 我从oracle站点(Win7 64bit)下载了64位JDK,并使用安装向导进行了安装。 The instalation folder went in Program file. 安装文件夹进入程序文件。 When I copy the link for the PATH variable and edit it the way it is shown everywhere, it doesn't work. 当我复制PATH变量的链接并按照在各处显示的方式对其进行编辑时,它将无法正常工作。 When I check in CMD "java-version" it always says: 当我签入CMD“ java-version”时,它总是说:

The java version is not recognized as an internal or external command. 无法将Java版本识别为内部或外部命令。

Any ideas what is wrong? 任何想法有什么问题吗?

I edited this PATH variable so many times and it never worked. 我编辑了此PATH变量很多次,但从未成功。

您应该键入java -version ,而不是java-version

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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