wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Selecting a JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Selecting a JVM" Watch "Selecting a JVM" New topic
Author

Selecting a JVM

Jenn Person
Ranch Hand

Joined: Jan 16, 2005
Posts: 89
Hi,

I'm running Tomcat 5.0.28. When installing the application it asks me to select the path of my JVM. At first I specified the path to my JDK.

The examples in tomcat run, my servlets can compile and run... but my JSP files won't compile at runtime because the it says "Perhaps JAVA_HOME isn't pointing to the JDK". I set the JAVA_HOME variable to the root folder of my JDK and still no results.

I read the Tomcat documentation and it states that if the JDK cannot be found it defaults to the JRE and after checking the Tomcat configuration is shows the JVM pointing to c:\Program Files\Java\jre1.6.0\bin\client\jvm.dll.

Should I set it to point somewhere else? Or is this something else I could be missing?

Jenn
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

How are you installing Tomcat?
From the .exe version?
If so, during the installation wizard, there will be a screen where you can browse to your JDK. Just select the root directory of your JDK.

Tip: If your JAVA_HOME environment variable is set when before you run the install wizard, it will use that to find your JDK.

Also, Tomcat 5.5 and up doesn't need a full JDK. It ships with it's own compiler so, make sure you're following the right directions for the version you're using. They may differ.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Selecting a JVM