[英]Cmd is not showing Java Version
I am running for Java -version
& javac -version
in my cmd, but it isn't showing any output.我在我的 cmd 中运行
Java -version
和javac -version
,但它没有显示任何输出。 It just goes to the next line, and doesn't show anything.它只是转到下一行,并且不显示任何内容。 Can anyone here can help me.
这里的任何人都可以帮助我。 Any solution ,guys?
任何解决方案,伙计们? I have also added an environment variable for it.
我还为它添加了一个环境变量。 I have attached a screenshot of it.
我附上了它的截图。
I got an answer to this.我得到了答案。
Here this came after running the command where java.exe
, here I see that I have two java.exe.这是在运行命令
where java.exe
之后出现的,在这里我看到我有两个 java.exe。 On inside Common files and another inside Java.在 Common 文件内部,另一个在 Java 内部。 So , Because of this only I wasn't getting the answer.
所以,正因为如此,我才没有得到答案。
PS C:\Users\absasahu> where.exe java.exe
C:\Program Files\Common Files\Oracle\Java\javapath\java.exe
C:\Program Files (x86)\Java\jre1.8.0_333\bin\java.exe
After deleting the first java.exe file, I got my work done.删除第一个 java.exe 文件后,我的工作就完成了。 https://i.stack.imgur.com/KSKal.png
https://i.stack.imgur.com/KSKal.png
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.