0

I used this command to set environment variable but I don't know why it is not working

D:\Developing tools\apache-tomcat-platform\bin>setx JAVA_HOME "C:\Program Files\
Java\jdk1.7.0_51"

SUCCESS: Specified value was saved.

D:\Developing tools\apache-tomcat-platform\bin>startup.bat
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
Michal Kordas
  • 10,475
  • 7
  • 58
  • 103

1 Answers1

0

Just restarting the pc solve the problem :)