2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' とかいうエラーが出たとき

Last updated at Posted at 2016-03-21

こんな感じのエラーができたとき

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

原因

windows\system32のパスがJDKよりも先に通っているのが良くないらしい。複数のJREが競合して発生しているらしい。 (こちらを参考にさせていただきました)

確かにパスを確認したら、windows\system32のパスが先にあった。

対応

JDKのパスを先に通す。

結果

Javaが動くようになった!
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?