I will summarize several methods to solve this problem from easy to complex:
1. First, if your Error looks like this:
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value 'X.X', but 'X.X' is required. Error: could not find java.dll Error: Could not find Java SE Runtime Environment.
Then you could do steps as blow:
If after doing this, the error became this:
- Open Commend Prompt, type "regedit" to open the Registry (be careful doing this)
- Go to "HKEY_LOCAL_MACHINE" on the left-hand side registry explorer/tree menu
- Click "SOFTWARE" within the "HKEY_LOCAL_MACHINE" registries
- Click "JavaSoft" within the "SOFTWARE" registries
- Click "Java Runtime Environment" within the "JavaSoft" list of registries
- Highlight "CurrentVersion" (should see it in the main registry key explorer window on the right)
- Change version to "x.x" (which you need)
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'
Then it means that you didn't have the CurrentVersion x.x installed or installed properly. So you need to install the correctly version from this website: http://www.oracle.com/technetwork/java/javase/index.html
Don't forget to change your JAVA_HOME and your PATH after you install the new JDK
2. Second Error type (even without the CurrentVersion):
Error: Registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment.
The you need to do these steps:
So if you still cannot solve the problem or you want to share your methods, please leave a message below.
- Open Commend Prompt, type "java -version" to check if there is an error
- If you got the error as like above, then you need do to the Control Panel -> Uninstall a Program and then removed java.
- Then you need to Re-install Java, you can install java from the website: http://java.com/
- Re-install your JDK from this website: http://www.oracle.com/technetwork/java/javase/index.html, and you have better to install the latest version.
- At last, don't forget to change your JAVA_HOME and your PATH after you install the new JDK
At last, in case of some one don't know how to change the JAVA_HOME and PATH under windows (7/8), I will show you as below:
- Open Computer, and then click Computer (beside File on the lefttop).
- Click the System Properties.
- Click Advanced system settings on the left bar
- Under the Advanced tab, click Environment Variables...
variable name: JAVA_HOME Value: C:\Program Files\Java\jdk 1.7.0_65
- Click New to add a new variable name and value:, or click the existing variable, and then click Edit to change its name or value.
- System variables, find Path, then click edit:
"C:\Program Files\Java\jdk1.7.0_65\bin"
- add the codes in the end of Variable Value
No comments:
Post a Comment