错误代码:
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
原因:CentOS7 默认自带了OpenJDK,再安装的话就有多个,系统不知道用哪个。
解决方法:可以指定用哪个或者先卸载了OpenJDK再安装Sun公司的JDK.
reference:
http://bbs.chinaunix.net/thread-4144078-1-1.html
http://blog.csdn.net/czmchen/article/details/41047187
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html