This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes problem starting Tomcat5.5 from command prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem starting Tomcat5.5 from command prompt" Watch "problem starting Tomcat5.5 from command prompt" New topic
Author

problem starting Tomcat5.5 from command prompt

Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

Hi Ranchers

When i run the startup.bat file then i am getting the error as,
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

I have tried pointing the jdk folder to JAVA_HOME.but it again says the same error..

Thanks
Shanky


SCJP6.0,My blog Ranchers from Delhi
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
Exactly what does your JAVA_HOME environment setting look like? How did you set it?

Mine looks like:
JAVA_HOME=c:\JavaMisc\jdk1.6.0

Bill

Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

mine looks like this

JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_20


but i am still facing the same problem


I AM USING WINDOWS7.
and tomcat is install in d: drive but java is install in c: drive

I hope this is not a problem
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

I got the problem,,
Even though i have set the java_home variable to jdk directory in environment variables..

but still when i say

echo %java_home%
it is coming as:-
C:\Program Files (x86)\Java\jre6\bin\javacpl


i donot understand from where it is coming..

Do anybody have any idea regarding this..


just for now i am doing
set javahome

So that atleast i can start my work..

is there anybody who will tell me how can i set it permanently
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem starting Tomcat5.5 from command prompt
 
Similar Threads
Jacl2jython help
Unable to Start Tomcat
tomcat not starting
how to start tomcat
error on setting Java_home for Tomcat4.0.3