如何知道我机器上的jdk版本? [英] How to know the jdk version on my machine?
问题描述
我最近卸载了 JDK 11 ,并安装了 JDK 8 .为了进行确认,我想检查在我的 Windows 10 计算机上安装了哪个JDK.我在cmd上键入java -version
,然后收到错误消息
I have recently uninstalled JDK 11 and installed JDK 8. For confirmation, I want to check which JDK is installed on my Windows 10 machine. I typed java -version
on cmd then get the error message
java不被识别为内部或外部命令
java is not recognized as an internal or external command
问题::如何知道PC上安装了哪个JDK版本?
Question: How to know which JDK version installed on pc?
推荐答案
您可能需要在控制面板中找到的环境变量中添加path
打开安装的 Jdk ,并在环境变量的路径中添加到/bin
.
you might need to add path
in environment variables which you can find in Control Panel
open the Jdk where you installed and add until /bin
in the path in environment variables.
添加到系统变量中的路径变量中的/bin
,该变量位于环境变量中.
Add until /bin
in path variable in System Variables which is residing in Environment Variables.
然后做
java -version
可能会出现.
Then do
java -version
which might show up.
如果仍然存在问题,请尝试重新启动计算机,然后查看.
If still problem persists, try restarting your pc and see.
这篇关于如何知道我机器上的jdk版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!