This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Tomcat Not Starting with startup.bat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Not Starting with startup.bat" Watch "Tomcat Not Starting with startup.bat" New topic
Author

Tomcat Not Starting with startup.bat

Shiva Kumar
Greenhorn

Joined: Jan 03, 2008
Posts: 9
hi
i have downloaded Tomcat server ver: apache-tomcat-6.0.14

but when i try to run the startup.bat batch file it giving the message:



I set My System environment variable as follows:

variables & values
----------------------------------------------
variable: CLASSPATH
value : c:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar;

variable: JAVA_HOME
value : C:\Program Files\Java\jdk1.6.0;

variable: PATH
value : C:\Program Files\Java\jre1.6.0;C:\Program Files\Java\jdk1.6.0\bin;C:\Program Files\Java\jre1.6.0\bin;C:\apache-tomcat-6.0.14\bin;

variable: JRE_HOME
value : C:\Program Files\Java\jre1.6.0;


these are my environment variables

please help me resolve my mistake that i have done
if it starts here i need to link it to the eclipse with SysduoTomcat Plugin
in the eclipse

thanks in advance

with regards
Shiva
Raghu ram
Ranch Hand

Joined: Oct 19, 2007
Posts: 34
Hi,

You can start the tomcat server using tomcat.exe. In tomcat old version there is file called start.bat. But in this latest version there is no such file. I think they had modified start.bat into tomcat.exe
Just try it.
Shiva Kumar
Greenhorn

Joined: Jan 03, 2008
Posts: 9
Hi
thank you for reply

Tomcat available as different types as a zip file in windows, linux..etc
and also as installation in windows i have both of the versions and its working from .exe if i use installaton from .exe file only but its not working
from eclipse plugin, and it worked well some days before with plugin also
and even with extracted ziparchive(i.e with out installation as win service)
and also it worked well with startup.bat
after few days i tried it to start again to learn servelet's but now it giving
that error message from command line startup.bat and

classLoaderException when tried to start from eclipse plugin


so please help me start tomcat with eclipse plugin
Thank you very much
Shiva
James Jiang
Greenhorn

Joined: Dec 13, 2007
Posts: 24
I think if you add tomcat-plugin to your eclipse, then you open eclipse,go to Window->Preferences, and you will see Tomcat in the left and click it,set the correct version of tomcat and select the location of Tomcat Home. I think if these are set correctly,your problem will be solved.Hope this helps you.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

JAVA_HOME and JRE_HOME should not have a semi-colon on the end

eg
JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Not Starting with startup.bat
 
Similar Threads
JAVA_HOME should point to a JDK not a JRE
Error while trying to run Tomcat for servlets
starting tomcat eror
how to start tomcat
Tomcat Not Starting with startup.bat