Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Tomcat and the fly likes can not run tomcat 5.5.9 with only jre Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "can not run tomcat 5.5.9 with only jre" Watch "can not run tomcat 5.5.9 with only jre" New topic
Author

can not run tomcat 5.5.9 with only jre

Priti Shah
Ranch Hand

Joined: May 10, 2005
Posts: 43
Hi ,

I have installed tomcat 5.5.9 and I have set my JAVA_HOME variable to point to jre. Now if i start tomcat it says java_home must point to JDK rather than JRE. My problem is I can only bundle JRE with my applicaiton. Does any one know how to start tomcat with only JRE ?

tomcat 4.x used to work fine with only JRE then why tomcat 5.x is giving problems?

Thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

What operating system are you using?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Priti Shah
Ranch Hand

Joined: May 10, 2005
Posts: 43
Win XP professional
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Did you download the zipped or the .exe version?

I'm asking because I know that Tomcat 5.5x ships with it's own compiler.
This makes it the first version that can compile JSPs without requiring a full external JDK. I also know that the Windows installer that that ships with the .exe version had been modified accordingly.

The Unix wrapper scripts allow you to set a JRE_HOME if you are running without a full JDK but to the best of my knowlege the windows batch scripts haven't been updated.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32081

Out of curiosity:
Why do you want to run with only a JRE?
Priti Shah
Ranch Hand

Joined: May 10, 2005
Posts: 43
Hi Ben,

I have installed from zip version of tomcat.

I will look at the modifications done in unix version of script files and try to modify my bat files.

Application I am working on is web based management software and we only bundle JRE cause we donot need entire jdk and we donot want to increase installer size.

Thanks for all your answers.
Priti Shah
Ranch Hand

Joined: May 10, 2005
Posts: 43
Hi ben,

Can you tell me modified batch files for windows are available anywhere on net ???

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can not run tomcat 5.5.9 with only jre