Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Tracey King   on Feb 22 In Java Category.

  
Question Answered By: Albert Ellis   on Feb 22

First of all please tell that which operating system  are u using,I tryed to run
my tomcat  on Windows 98 for more than 6 months but it did not worked and when I
installed Windows 2000 Professional than it started running  prefectly.Now I am
explining the whole process as follows :

Step 1: First install jdk1.3 and tomcat 4 in your C: drive(I did it like that u
can use any drive),please make sure that tomcat 4.0 and jdk 1.3 are the best
choices.

Step 2 Now go the bin folder,in the bin folder you can find a startup.bat
file,open this file with notepad,set the home of jdk1.3 and tomcat as follows:

set JAVA_HOME=C:\JDK1.3

set TOMCAT_HOME=C:\TOMCAT

After making the above mentioned changes t your startup.bat file the file will
look like the one which is at the last of this mail u can copy paste this file.

Step 3 Now go the DOS prompt  go to C:,go to tomcat folder,go to bin and simply
type startup,suppose u r on dos prompt than u can do it as follows:

C:

cd tmcat

cd bin

startup

Another window on DOS prompt would be opened with the title of catilina and your
server is running.

Startup.bat

@echo off
rem ---------------------------------------------------------------------------
rem startup.bat - start  Script for the CATALINA Server
rem
rem $Id: startup.bat,v 1.3 2000/10/16 18:50:58 craigmcc Exp $
rem ---------------------------------------------------------------------------
set JAVA_HOME=C:\JDK1.3
set TOMCAT_HOME=C:\TOMCAT
set _CATALINA_HOME=%CATALINA_HOME%
if not "%CATALINA_HOME%" == "" goto gotCatalinaHome
set CATALINA_HOME=.
if exist "%CATALINA_HOME%\bin\catalina.bat" goto gotCatalinaHome
set CATALINA_HOME=..
if exist "%CATALINA_HOME%\bin\catalina.bat" goto gotCatalinaHome
echo Unable to determine the value of CATALINA_HOME
goto cleanup
:gotCatalinaHome
"%CATALINA_HOME%\bin\catalina" start %1 %2 %3 %4 %5 %6 %7 %8 %9
:cleanup
set CATALINA_HOME=%_CATALINA_HOME%
set _CATALINA_HOME=

Please reply that is this slution working or not.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on while running Tomcat Server problem Or get search suggestion and latest updates.


Tagged: