• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can not run tomcat 5.5.9 with only jre

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

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

Thanks
 
Yeah, but how did the squirrel get in there? Was it because of the tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic