wood burning stoves*
The moose likes Servlets and the fly likes Tomcat Error: JAVA_HOME must point... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Error: JAVA_HOME must point..." Watch "Tomcat Error: JAVA_HOME must point..." New topic
Author

Tomcat Error: JAVA_HOME must point...

Jyotsna Clarkin
Ranch Hand

Joined: Jan 26, 2001
Posts: 158
I've been trying to configure Tomcat and am getting the following error when I call tomcat run
You must set JAVA_HOME to point at your jdk installation.
My current settings on Win98 (64 meg RM) are
Tomcat installed in d:\tomcat
JDK in d:\jdk1.3
I have changed DOS environment variable mem to 3072
autoexec.bat contains
@C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BITWARE\;d:\jdk1.3\bin
set temp= c:\dos
C:\WINDOWS\COMMAND\doskey
SET CLASSPATH=.;d:\age of wonders heat program\navbar;%CLASSPATH%
SET JAVA_HOME = d:\jdk1.3
SET TOMCAT_HOME = d:\tomcat
SET PATH =%PATH%;D:\tomcat
I followed a discussion thread http://www.javaranch.com/ubb/Forum7/HTML/001852.html
in this forum and also made a CHANGE in tomcat.bat

open the "tomcat" file in notepad.Search for the following paragraph:
rem ----- Save Environment Variables That May Change ------------
set _CP=%CP%
set _TOMCAT_HOME=%TOMCAT_HOME%
set _CLASSPATH=%CLASSPATH%
Add the following line: to the above.
set JAVA_HOME=C:\jdk1.3
Can anyone help?
regards,
Jyotsna
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Jyotsna:
Couple of things I would do......
- i would not mess with tomcat.bat
- then, in your dos window, type set java_home
see if your java_home is set and verify that its correct.
let me know what happens....
regds.
- satya


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Her problem is solved.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

oh.....magic is it
regds.
- satya
Jyotsna Clarkin
Ranch Hand

Joined: Jan 26, 2001
Posts: 158
Actually, yes.
Roseanne waved her wand & it was up & running.
Thanks for your response, Satya.
regards,
Jyotsna
connie lindstrom
Greenhorn

Joined: Jan 29, 2001
Posts: 5
Hi,
Am having the same problem, and getting the same �You must set . . � message upon opening tomcat. Tried entering set java_home, exactly as suggested, no caps. Typed this in each directory from C:\: to C:\Program Files\Apache Group\jakarta-tomcat-3.2.1\bin. All I get is the �Syntax error� message.

Is there some suggested/default directory for tomcat? I am using
C:\Program Files\Apache Group\jakarta-tomcat-3.2.1


Any suggestions would be greatly appreciated, Connie Lindstrom
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Try to use the worksheet to see what happens:
How to make your first JSP page work on Tomcat?
You might need to start over.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Error: JAVA_HOME must point...