Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting java_home in catalina.bat file

 
dimpsonu arora
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir/Madam,
I am using Apache Tomcat web server 4.0.6.
I need to set Java_Home variable. Is it in catalina.bat file.Please tell me how to set java_home variable and where is that in the file catalina.bat.Do we need to set catalina.bat file or some other file.I am using jdk 1.3 which is in c:/jdk1.3 and My jre is in c:/jdk1.3/bin. Please help me.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Tomcat forum.
bear
 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download the latest version of Tomcat. I think it's version 4.1.27. When you install it, it will automatically detect the Java_Home directory and no problems. Then you should have icons to start and stop the Tomcat server.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are doing a lot of Java you might as well set the JAVA_HOME environment variable for all applications. In Windows thats done from the System dialog in the Control Panel. Pick the "Advanced" tab - then the "Environment Variables" button. JAVA_HOME should point to the SDK installation directory - mine looks like this:
JAVA_HOME=c:\Java\j2sdk1.4.1\
I also like to set CATALINA_HOME by hand rather than have the batch file set it.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic