java常见问题记录

1、问题:

Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.8', but '1.6' is required.
Error: could not find java.dll
Error: could not find Java SE Runtime Environment.

解决:

△确认环境变量

△在C:\Windows\System32 目录下搜索java,出来三个exe:java,javaw,javaws。把这个三个exe全删掉。

△C:\ProgramData\Oracle\Java\javapath目录,把其下的java,javaw,javaws全删掉。历史版本产生

结果:

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

你可能感兴趣的:(java,java)