I have installed the JDK, to C:\jdk, the JAVA_HOME variable is set to C:\jdk\jdk, and when I echo %JAVA_HOME% I get C:\jdk\jdk. Yet Tomcat complains.
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
I seem to be having errors with my environment variables. Often when I start a Command Line instance from the start menu, I receive different variables, to when I start an instance from the Windows 7 Right click > Open Command Window here.
What gives?