| Author |
problem starting Tomcat5.5 from command prompt
|
Shanky Sohar
Ranch Hand
Joined: Mar 17, 2010
Posts: 1046
|
|
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: 12268
|
|
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
|
Java Resources at www.wbrogden.com
|
 |
Shanky Sohar
Ranch Hand
Joined: Mar 17, 2010
Posts: 1046
|
|
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: 1046
|
|
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
|
 |
 |
|
|
subject: problem starting Tomcat5.5 from command prompt
|
|
|