• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JAVA_HOME environment variable is not defined

 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the error I get when I try and run the startup file for Tomcat 4.1.12 in win95.
Any ideas?
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;
U better add these two following Lines in ur autoexec.bat file:
let's Suppose U installed jdk under C:\jdk1.3
and tomcat under C:\Tomcat
then
set JAVA_HOME=C:\jdk1.3;
set TOMCAT_HOME=c:\Tomcat;
 
Rob Petterson
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Inam,
I'll try it tomorrow when I get to work. I'll let you know how I got on then.
 
Rob Petterson
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I'm at work and have added the code to my autoexec.bat file. Still comes up with the same error, I'm afraid
I think I might re-install the Tomcat download, as I've heard this can sometimes resolves the problem. Can someone tell me the exact URL for Tomcat dowload, just to make sure that I am dowloading the right one.
Thanks
 
Author
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob,
If you still haven;t sorted this out, try doing the following:
1) Open a command prompt window
2) type SET JAVA_HOME=path_to_your_jdk (e.g. set JAVA_HOME=c:\j2sdk1.4)
3) start tomcat using the startup.bat script in the bin directory.
Cheers
Sam
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope you remembered to reboot your PC when you changed the "autoexec.bat" file!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!