There's a lot of problems today, VMware installed on Btrace encountered during the Btrace need to read the server's Java_home , when I configured the java_home=/usr ( I thought the JAVA command is in the directory is java_home, really two can ), how can not get up, the error is as follows:
caused By:java.lang.ClassNotFoundException:com.sun.source.util.TaskListener ,
after inquiring about development, the development tells me that this is JDK the inside of the class, should be yours Java_home not right. Google a bit, that's really the problem.
To the server looked up, as follows
$ RPM-QA |grep JDK
Java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64
Java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el6_7.x86_64
Java-1.8.0-openjdk-devel-1.8.0.91-0.b14.el6_7.x86_64
$ rpm-qljava-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64/jre/bin/policytool
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64/jre/lib/amd64/libawt_xawt.so
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64/jre/lib/amd64/libjawt.so
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64/jre/lib/amd64/libjsoundalsa.so
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64/jre/lib/amd64/libsplashscreen.so
/usr/share/applications/java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64-policytool.desktop
/usr/share/icons/hicolor/16x16/apps/java-1.8.0.png
/usr/share/icons/hicolor/24x24/apps/java-1.8.0.png
/usr/share/icons/hicolor/32x32/apps/java-1.8.0.png
/usr/share/icons/hicolor/48x48/apps/java-1.8.0.png
$ CD/USR/LIB/JVM
$ ll
Total Dosage 4
lrwxrwxrwx. 1 root root 5 Month 16:59 java->/etc/alternatives/java_sdk
lrwxrwxrwx. 1 root root 5 Month 16:59java-1.8.0-/etc/alternatives/java_sdk_1.8.0
drwxr-xr-x. 7 root root 4096 5 Month 1716:59 java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64
lrwxrwxrwx. 1 root root 5 Month 16:59java-1.8.0-openjdk.x86_64-java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64
lrwxrwxrwx. 1 root root 5 Month 16:59JAVA-OPENJDK-/etc/alternatives/java_sdk_openjdk
lrwxrwxrwx. 1 root root 5 Month 16:54 JRE->/etc/alternatives/jre
lrwxrwxrwx. 1 root root 5 Month 16:54jre-1.8.0-/etc/alternatives/jre_1.8.0
lrwxrwxrwx. 1 root root 5 Month 16:54jre-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64->java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64/ JRE
lrwxrwxrwx. 1 root root 5 Month 16:54jre-1.8.0-openjdk.x86_64->java-1.8.0-openjdk-1.8.0.91-0.b14.el6_7.x86_64/jre
lrwxrwxrwx. 1 root root 5 Month 16:54JRE-OPENJDK-/etc/alternatives/jre_openjdk
O (∩_∩) o , got it, Java_home is a /usr/lib/jvm/java .
This article is from the "Hades Blog" blog, please be sure to keep this source http://hades02.blog.51cto.com/9768670/1782261
Centos6.7 on yum install jdk1.8 Java_home