Tomcat启动过程中找不到JAVA_HOME JRE_HOME的解决方法
[b]现象:[/b]Windows10系统中运行Tomcat 7.0.107时提示:D:\Soft\apache-tomcat-7.0.107\bin>startup.bat
[quote]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[/quote]
[b]解决:[/b]bin\setclasspath.bat中,rem Otherwise either JRE or JDK are fine上面添加:[code]set JAVA_HOME=D:\Program Files\Java\jdk1.8.0_121
set JRE_HOME=D:\Program Files\Java\jre1.8.0_121[/code]
页:
[1]