I have Java 8 update 25 installed with JDK 8.25. My problem is when I try to install the Android SDK tools, it gives me an error "..can't write in file java_find.exe" which I automatically understood as it can't find Java on my computer.
I have these two in my path variable:
C:/Program Files/Java/jre1.8.0_25/bin;C:/Program Files/Java/jdk1.8.0_25/bin
What's wrong? The first time I installed the SDK tools, the SDK manager worked fine but now it just opens the command prompt and closes quickly.
Add a system variable named JAVA_HOME and set it to C:/Program Files/Java/jre1.8.0_25