jconsole.sh when run from the jboss bin folder returns a UnsupportedClassVersionError:

Solution Unverified - Updated -

Issue

When I run jconsole in the JBoss bin folder I get an UnsupportedClassVersionError:

guest@host1:/opt/tools/jboss-eap-6.0/bin$ CLASSPATH /usr/java/jdk1.7.0_09/lib/jconsole.jar:/usr/java/jdk1.7.0_09/lib/tools.jar:/opt/tools/jboss-eap-6.0/modules/org/jboss/remoting3/remoting-jmx/main/remoting-jmx-1.0.4.Final-redhat-1.jar:/opt/tools/jboss-eap-6.0/modules/org/jboss/remoting3/main/jboss-remoting-3.2.14.GA .. ..
.. ..
Exception in thread "main" java.lang.UnsupportedClassVersionError: sun/tools/jconsole/JConsole : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: sun.tools.jconsole.JConsole. Program will exit.

Is there something wrong in the configuration?

Environment

  • JBoss Enterprise Application Platform (EAP) 6.0.x, 6.1.0
    • Java 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content