Java VM Path Selection for Tomcat

tomcat

Solution

Tomcat requires the JDK. Set the path to your `%JAVA_HOME%/bin` where the `JAVA_HOME` environment variable points to your JDK.

EDIT:

From Apache's site, to expand on the environment variable for Windows:

Set `JAVA_HOME`. Set this environment variable to point at the top-level of your Java installation directory (e.g., C:\Program Files\Java\jdk1.6.0_21).

Problem

I am installing Tomcat for first time and was wondering what is the best path to give to it for Java Path? Should I point to to JRE? to bin? to JDK?

Original source