Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting up Server to run Servlet application.

 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I'm new to servlet. And i want to set up environment for that. I have installed apache-tomcat 6.0.16. But when i tried to start up it, from bin of apache-tomcat but command : startup.bat shows me below message.


Neither JAVA_HOME not JRE_HOME environment variable is defined.At least one of these is needed to run this program.

Can any one please help me on defining this variable.

Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAVA_HOME needs to point to the directory where your JRE (or JDK) is installed. That directory contains the "bin" and "lib" directories (amongst others).
 
Bauke Scholtz
Ranch Hand
Posts: 2458
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic