windows2012服务器安装tomcat the java_home environment variable is not defined correctly
windows2012配置好环境变量之后运行java-version可以看到版本,但是执行serviceinstall命令安装tomcat服务却报thejava_homeenvironmentvariableisnotdefinedcorrectly.遇到过两次:1.直接在tomcat\bin目录下的setclasspath.bat文件里面增加如下内容:rem-------------------