I> No access restrictor found, access to any MBean is allowed Jolokia: Agent started…
- User
I> No access restrictor found, access to any MBean is allowed Jolokia: Agent started with URL http://192.168.2.114:7771/jolokia/ Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/zookeeper/server/quorum/QuorumPeerMain : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access1.run(URLClassLoader.java:361) at java.net.URLClassLoaderAppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
- Assistant
This error message indicates that there is a version mismatch between the Java runtime environment and the class file being executed.
The error "Unsupported major.minor version 52.0" means that the class file was compiled with a newer version of Java than the one being used to run the program. In this case, the class "org/apache/zookeeper/server/quorum/QuorumPeerMain" was compiled with Java version 52.0, which corresponds to Java 8.
To resolve this issue, you need to either upgrade your Java runtime environment to a version that supports Java 8 or use a lower version of the class file that is compatible with your Java version.