permaculture playing cards*
The moose likes Tomcat and the fly likes Can Tomcat run with JRE only? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can Tomcat run with JRE only?" Watch "Can Tomcat run with JRE only?" New topic
Author

Can Tomcat run with JRE only?

lydia westland
Ranch Hand

Joined: Feb 24, 2002
Posts: 72
Does Tomcat requires JAVA JDK installed? Can Tomcat run only with JRE? I have a customer who complains he has to install the JAVA JDK before making Tomcat running. Can I help him to easy install Tomcat? and how? pls. help me out. Thank you very much.


Lydia<br />~~~~~~~~~~~~<br />I love Italy team.
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 565
Yep, that's what jakarta says.
Look in the RUNNING.txt file in the installed directory, or check out the jakarta.apache website, under Documentations / Getting Started / Install & Run.

Adam


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Hi Iydia,
I too thinking abt that,as my customer is not interested in downloading JDK1.3(30MB),setting classpath blah blah..
I'm going to test whether Tomcat can run only with JRE,we need to set the JAVA_HOME,but where to point ??
If its get running,then all I'm thinking is to pack tomcat(only needed files) using Installanywhere along with JVM and distribute it like a Setup.exe or Setup.bin etc.,
Then the user have to just run the setupwizard.Just like we do for installing BEA Weblogic etc.,
I haven't tried it yet,will do it soon,if you can please reply.
Regards
Balaji
Originally posted by lydia westland:
Does Tomcat requires JAVA JDK installed? Can Tomcat run only with JRE? I have a customer who ....

[ May 21, 2002: Message edited by: Balaji Loganathan ]

Spritle Software Blogs
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Hi Adam,
It doesn't say anything abt JRE.Isn't it ??
Originally posted by Adam Hardy:
Yep, that's what jakarta says.
..
Adam
lydia westland
Ranch Hand

Joined: Feb 24, 2002
Posts: 72
Thanks Balaji.
I don't know how to fix JAVA_HOME environment variable either. Tomcat is a servlet container, which will interpret JSP to Servlet and compile the servelt when called first time. but JRE doesn't inclue compiler ... Actually in my project I am only using servlet. not sure if that works.
would you like to keep my updated if you have some new findings? Thank you.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Lydia, as you stated, Tomcat requires the jdk to compile jsp's. I don't know if you can run servlets with only the JRE. I would be interested to find out the results of your testing.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
The best thing to test it by uninstalling JDK and testing it only using JRE,I will try to do it today.
Regarding JDK1.4 & Tomcat,doesn't suit well.Frequectly I'm getting the error "Socket write exception",May due to Windows envt.
Best partner is Jdk1.3 and Tomcat.

regards
Balji

Originally posted by Bodie Minster:
Lydia, as you stated, Tomcat requires the jdk to compile jsp's.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Hi Lydia and Bodie,
I tested today running Tomcat 3.2 with JRE only.Thanks god its working fine.!!I uninstalled jdk from my machine,checked if there is any old file and deleted them.Then I installed JRE1.3,I setted JAVA_HOME to JRE root.
The only exception is its execute only complied servlet and jsp,which is no good.
I copied tools.jar from other jdk installed machine to lib directory of tomcat and restarted the Tomcat.Well Its works fine new and old Servelts/JSP.Its doesn't need JDK at all.
Do anybody have exp on creating self executing installation files like .exe,.bin .sh. Like BEA is using Install anywhere and Sun is using Installsheid. My question is how they can able to create customized classpath settings for their application. Like in BEA just clicking startserver will set classpath and start running the server on fly.

Please help.

Regards
Balaji
[ May 31, 2002: Message edited by: Balaji Loganathan ]
lydia westland
Ranch Hand

Joined: Feb 24, 2002
Posts: 72
Balaji, you made it work! so wonderful!!!
as for your question, I know Tomcat use its own classpath. we can manually customize that. it's said the InstallShield and InstallAnywhere don't recommend user to set any environment variable. I am also trying figuring out a solution for this. :roll:
Have a good weekend
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can Tomcat run with JRE only?
 
Similar Threads
How to run Java programs made in older versions
Connection problem with MYSQL
java.lang.UnsupportedClassVersionError
Why Tomcat is throws servlet exception on JSP file ?
Difference between JVM and JRE