• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem starting Tomcat5.5 from command prompt

 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic