• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Tomcat Error: JAVA_HOME must point...

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Her problem is solved.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

oh.....magic is it
regds.
- satya
 
Jyotsna Clarkin
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, yes.
Roseanne waved her wand & it was up & running.
Thanks for your response, Satya.
regards,
Jyotsna
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic