服务器版本:win2003 86x wex5 v3.4 创建服务报错:
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
我又吧3.3版本的tomcat和java两个文件夹拷贝到服务器上,运行了installService-x86.bat。就成功了。
代码:
正在安装Justep X5服务......
Installing the service 'X5' ...
Using CATALINA_HOME: "D:\v3.3\apache-tomcat"
Using CATALINA_BASE: "D:\v3.3\apache-tomcat"
Using JAVA_HOME: ""
Using JRE_HOME: "D:\v3.3\java\jre1.7"
Using JVM: "D:\v3.3\java\jre1.7\bin\server\jvm.dll"
The service 'X5' has been installed.
请按任意键继续. . .