File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes jdk and tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "jdk and tomcat" Watch "jdk and tomcat" New topic

jdk and tomcat

Ariffin Ahmad
Ranch Hand

Joined: Aug 16, 2001
Posts: 84
why should i used jdk directory for JAVA_HOME in tomcat, instead of jre directory?....
compare to jdk, jre is much smaller.
i can't see why i should...
can anybody explain to me?.....
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

because jsps need to be compiled, so they need javac, not just java. The JRE will only run compiled items.
I agree. Here's the link:
subject: jdk and tomcat