These are the errors I get when I try to run a simple java version in the command window.
I followed the advice on Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'? https://stackoverflow.com/questions/8644992/error-registry-key-software-javasoft-java-runtime-environment-currentversion.
When I went on regedit, here's what I saw
Which meant that there was nothing to change - right runtime version. I then did the next step which was to "delete all previous versions of Java (using "Programs and Features" uninstall process) and then re-install just the version you want to work with"
However, that didn't work either......
Here is my current java directory(see that i have everything installed)
我当前的环境变量是
JAVA_HOME - C:\Program Files\Java\jdk1.7.0_71
Path - C:\Program Files\Java\jdk1.7.0_71\bin
我相信这也是正确的http://www.oracle.com/technetwork/java/javase/install-windows-189425.html http://www.oracle.com/technetwork/java/javase/install-windows-189425.html
有谁知道我怎样才能摆脱这个问题?我可以再进行一次卸载/安装,但我认为这是浪费时间并且不会产生任何影响。
I want to thank @almas-shaikh for this answer. His comment made me check over C:\Program Files\Java\jdk1.7.0_71\jre\bin and see that there was no java.dll library file inside that directory. What I did next was just deleting the jdk and reinstalling it via jdk-7u71-windows-x64.exe executable.
Now when I execute java -home, I get
现在我不明白的是java.dll库文件最初是如何被删除的……
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)