• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

again problem in tomcat installation

 
madhur jain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
well now i have the tomcat in c:\Tomcat4.1
and the autoexec is
set JAVA_HOME= C:\jdk1.3.0_02
set TOMCAT_HOME= C:\Tomcat4.1
set CLASSPATH=C:\jdk1.3.0_02\bin;C:\jdk1.3.0_02\lib;C:\jdk1.3.0_02\jre\lib
PATH= C:\orawin95\bin;c:\jdk1.3.0_02\bin

the DOs window now says

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: C:\jdk1.3.0_02
Invalid switch - -DJAVA.ENDORSED.DIRS=
please help
madhur
 
Anand Mathuria
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we say installed Tomcat, actually we have just unzipped the tomcat download. I have unzipped the Tomcat to "C:\jakarta-tomcat-4.1.10". So my "startup" file is in "C:\jakarta-tomcat-4.1.10\bin".
If you have Windows-NT or Windows-2000, right click on the "My Computer" icon on your desktop and select "properties". Then you can set the Environment variables as:
CATALINA_HOME=c:\jakarta-tomcat-4.1.10
JAVA_HOME=c:\jdk1.3.1_02
path=c:\jdk1.3.1_02\bin;
classpath=.;C:\jakarta-tomcat-4.1.10\common\lib\servlet.jar;
Please replace with relevant version names.
 
Nazmul Huda Sarkar
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to increase environmenr variable for startup.bat and shutdown.bat . Open the property page and select Memory tab, change the init environment to minimum 2048 byte.
Hope it will help you...
 
Nikki Aniban
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove the whitespace after the "=" sign in your declaration of variables:
set JAVA_HOME= C:\jdk1.3.0_02
set TOMCAT_HOME= C:\Tomcat4.1
set CLASSPATH=C:\jdk1.3.0_02\bin;C:\jdk1.3.0_02\lib;C:\jdk1.3.0_02\jre\lib
PATH= C:\orawin95\bin;c:\jdk1.3.0_02\bin

should be:
set JAVA_HOME=C:\jdk1.3.0_02
set TOMCAT_HOME=C:\Tomcat4.1
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar
set PATH=%PATH%;C:\orawin95\bin;%JAVA_HOME%\bin
Hope this helps!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic