JAVA_HOME would be defined as an environment variable in the OS, so that's Control Panel --> System --> Advanced System Settings --> Environment Variables as C:\path\to\jdk1.8.0_x
You could also modify your Path environment variable to ensure jdk/bin/ is sooner on the path than jre/bin/ (or remove the jre path entry entirely)
Are you sure you downloaded a JDK when you installed Java?