File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can not run tomcat 5.5.9 with only jre

 
Priti Shah
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What operating system are you using?
 
Priti Shah
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Win XP professional
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ben,

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

Thanks
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic