• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set JAVA_HOME in Tomcat4.0.4

 
Meena R
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have windows2000 operating systen and downloaded j2sdk1.4.1 and also installed tomcat4.0.4.
In the instructions it says
edit install_dir/bin/catalina.bat and change the following:
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo You must set JAVA_HOME to point at ...
goto cleanup
:gotJavaHome
to:
if not "%JAVA_HOME%" == "" goto gotJavaHome
set JAVA_HOME=C:\JDK1.3_01
:gotJavaHome

but unanble to find the above given line
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo You must set JAVA_HOME to point at ...
goto cleanup
:gotJavaHome
in catalina.bat.
Any suggestions as to how i can set JAVA_HOME
 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
u set JAVA_HOME in system level. Like
start ->setting->control-panel,there select system and then advanced tab and then environment variables button.This will open a pop up window,there u can create new variable JAVA_HOME and set the value to the installed jdk directory.
Incase u get any error..pls do write back.
All the best
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic