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.
Error: could not find java.dll
Error: could not find Java SE Runtime Environment.
How do you fix this error? I am using Windows 7 but my fix may apply to other OS versions.
Whatever you do, do NOT try to fix the error by editing the registry.
Root Cause
First let's know what the root cause is. The root cause is when you are done installing Java, the installation program has set up your OS environment so that every program running Java on your computer knows where to find Java you just installed.
However, suppose the Java version you installed creates problems such as you can no longer run Eclipse, then you will need to fix these problems.
Solution
Let's assume that you have upgraded from Java 7 to Java 8. You may be in one of the following situations.
#1: You have NOT removed Java 7 from your PC.
In this case, simply remove Java 8 by uninstalling it. When you are done uninstalling Java 8, try running Java again and see if the error goes away.
#2: You have removed Java 7 from your computer.
In this case, uninstall Java 8. Then reinstall Java 7. When you are done reinstalling Java 7, try running Java again and see if the error goes away.
If you have any questions let me know and I will do my best to help you!