首页 > Web > tomcat > 正文

configure:error:can't locate a valid JDK location
2016-08-01 10:33:19 点击:

安装tomcat-native时如果报错 "Can’t locate a valid JDK location " 使用下面方式解决。
        安装tomcat-native时如果报错 "Can’t locate a valid JDK location" 使用下面方式解决。
原因是程序只会到以下默认的目录寻找JDK:
configure: [/ usr/local/1.6.1]
configure: [/ usr/local/IBMJava2-1.6.0]
configure: [/ usr/local/java1.6.0]
configure: [/ usr/local/java-1.6.0]
configure: [/ usr/local/jdk1.6.0]
configure: [/ usr/local/jdk-1.6.0]
configure: [/ usr/local/1.6.0]
configure: [/ usr/local/IBMJava2-1.6]
configure: [/ usr/local/java1.6]
configure: [/ usr/local/java-1.6]
configure: [/ usr/local/jdk1.6]
configure: [/ usr/local/jdk-1.6]

根据java版本建立软链接即可:



ln -s /usr/java/jdk1.7.0_25  /usr/local/jdk-1.6

ln -s /usr/java/jdk1.8.0_51  /usr/local/jdk-1.6



相关热词搜索:出错 configure error JDK location

上一篇:tomcat,tomee优化方案
下一篇:linux添加tomcat服务并设置开机启动