Why am I still getting a cannot find Java SE Runtime Environment?
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
Now the part I don't get is how the java.dll library file was deleted in the first place......
I had similar problem. Turns out, even when you have 64-bit OS, your browser is most likely 32-bit and therefore your JAVA too. You need to manually install 64-bit JAVA.
I hope that will help.
Please try the steps. I hope, it will help you.
Step 1: Delete all previous versions of Java (using "Programs and Features" uninstall process). If java folder is remain in "C:/Program Files/...", please delete it.
Step 2:
Clean up your registry(delete your java key). Please follow the below link for step by step clean up
https://java.com/en/download/help/manual_regedit.xml
Step 3:
Reinstall Java and sets system variable JAVA_HOME to your JDK path.
Eg:
JAVA_HOME - C:\Program Files\Java\jdk1.7.0_71
Path - C:\Program Files\Java\jdk1.7.0_71\bin
Step 4
If step 3 is success, check with below command
1) echo %JAVA_HOME%
2) java -version