Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat is not running.. pls help

 
Pranit Saha
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've downloaded Tomcat4.0 and installed it in c:\program files\Jakarta Tomcat4.0.. Now when i click on "Start Tomcat" the command prompt comes and goes off with blank.. And when i double click on startup.bat the error comes as follows:
cannot find the file 'c:\jdk1.2.1\bin;c:\jdk1.2.1\bin\java.exe;bin\java'(or one of its components). Make sure the path and filename are correct and that all required libraries are available..
My autoexac.bat is as follows:
set classpath = c:\JSDK2.0\lib;
set classpath = %CLASSPATH%;c:\JSDK2.0\lib\jsdk.jar;
set path = c:\jdk1.2.1\bin;c:\jdk1.2.1\lib;
set JAVA_HOME = c:\jdk1.2.1\bin;c:\jdk1.2.1\bin\java.exe;
set TOMCAT_HOME = c:\Program Files\Jakarta Tomcat 4.0;
Now what's wrong here and what next i need to do to run this..
pls help..
Thanks in advance..
Pranit..
 
Jared Krull
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are on Win98, look at the memory part of the properties of your bat file. The memory settings are usually set to auto. Play around with them by increasing them untill your startserver will run without automatically closing.
I cant remember the best settings as I am at work. Play around with it...
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, just to eliminate the obvious, make sure that your JDK really is in that directory and that bin and java.exe are there too and not spelled wrong or corrupt.
Dave
 
Pranit Saha
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave,
First of all thanks for ur reply.. everything is ok there in the .bat still not running.. pls help..
Pranit
Originally posted by Dave Vick:
Also, just to eliminate the obvious, make sure that your JDK really is in that directory and that bin and java.exe are there too and not spelled wrong or corrupt.
Dave

 
Rupali Desai
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have the classpath and path set as follows on my computer.
PATH D:\JDK1.3.1\BINset
CLASSPATH=.\;D:\JDK1.3.1\LIB\TOOLS.JAR\;
set JAVA_HOME = d:\jdk1.3.1
SET TOMCAT_HOME = D:\TOMCAT
see if that helps especially the \.Also on my computer(Win 98) I have to restart my computer for classpath to take effect.
also I dont remember exactly but I also had to start and save the .bat files in a standard dos editor.That really got my tomcat working.Also i have version 3.1 .
i hope this helps.Frankly speaking I am also in the learning stages
[This message has been edited by rup desai (edited October 08, 2001).]
 
Palani Raman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set the path like set java_home=d:\jdk1.3.0_02
d:\jakarta-tomcat\bin\startup
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic