I am not able to start my tomcat.
It is giving the below gien error:
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 done th following settings in the user variables:
Are those actually user environment variables? Because unless Tomcat runs under your user account it doesn't see those. Change the JAVA_HOME variable into a system variable. You can also drop the other two as far as Tomcat is concerned, it doesn't need those. Especially the PATH variable is dangerous, as it removes all other PATH entries.
Any particular reason you have the \lib under path? Keep only the System variables and try removing the \lib from the Path variable. Let this be @ first path - C:\Program Files\Java\jdk1.6.0_24\bin. Try java -version in the cmd prompt and confirm if your path is right. Open a new cmd prompt after altering these values.
No particular reason why lib was there.
I modified the PATH to C:\Program Files\Java\jdk1.6.0_24\bin
Still the same error.
Do i need to restart the sytem after these changes?
What i did was i modified the PATH & restarted the Tomcat.