安装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:can't locate a valid JDK location
2016-08-01 10:33:19
点击:
安装tomcat-native时如果报错 "Can’t locate a valid JDK location " 使用下面方式解决。
相关热词搜索:出错 configure error JDK location
评论排行
- ·Python是美国主流大学最...(5)
- ·HAProxy 配置 HTTP 负载均衡器(1)
- ·Linux+Nginx下SSL证书安装(1)
- ·linux开机自动挂载新硬盘...(1)
- ·linux手动挂载ext盘(1)
- ·mysql修复表,检查表,优...(1)
- ·linux配置网卡(1)
- ·windows下mysql binlog日志开启(1)
- ·Linux创造者Linus Torvalds(1)
- ·关于CentOS 6下Hadoop占...(1)
- ·apache2.4.10 for win 32/64安装教程(1)
- ·运维之家.FAN科技 ...(1)