Cannot run - Error " "main" java.lang.NoClassDefFoundError: MainClass "

Bug #1152276 reported by pradeep reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Jmxterm
New
Undecided
Unassigned

Bug Description

I am trying to configure JMXTERM to flush cache, when I copied the jar file to appropriate location and trying to RUN, I am seeing below Error.

Linux sj1slm276 2.6.18-308.24.1.el5 #1 SMP Wed Nov 21 11:42:14 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@sj1slm276 lib]# pwd
/apps/java/32/jdk1.6.0_24/lib
[root@sj1slm276 lib]# java -jar jmxterm-1.0-alpha-4.jar
Exception in thread "main" java.lang.NoClassDefFoundError: MainClass
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: MainClass not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:jmxterm-1.0-alpha-4.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.