Problem with check_jmx plugin


#1

i have problem in running the check_jmx plugin.the error i get is:
[[email protected] libexec]# ./check_jmx Exception in thread “main” java.lang.NoClassDefFoundError: org.nagios.JMXQuery
at java.lang.Class.initializeClass (libgcj.so.7)
at java.lang.Class.forName (libgcj.so.7)
at gnu.java.lang.MainThread.run (libgcj.so.7)
Caused by: java.lang.ClassNotFoundException: javax.management.remote.JMXServiceURL not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./jmxquery.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=], parent=null}}
at java.net.URLClassLoader.findClass (libgcj.so.7)
at java.lang.ClassLoader.loadClass (libgcj.so.7)
at java.lang.ClassLoader.loadClass (libgcj.so.7)
at java.lang.Class.initializeClass (libgcj.so.7)
…2 more

can any one suggest me how to overcome this problem?

Thanks