java.lang.ClassFormatError

com.sun.tools.javac.main.Main (erroneous method access flags) *at Jv ClassReader.throw_class_format_error(byte) (/usr/lib/libgcj.so.5.0.0)* *at Jv ClassReader.handleMethod(int, int, int, int) (/usr/lib/libgcj.so.5.0.0)* *at Jv ClassReader.read_methods() (/usr/lib/libgcj.so.5.0.0)* *at Jv ClassReader.parse() (/usr/lib/libgcj.so.5.0.0)* *at Jv DefineClass(java.lang.Class, byte[], int, int) (/usr/lib/libgcj.so.5.0.0)* at java.lang.VMClassLoader.defineClass(java.lang.ClassLoader, java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0) at java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0) at java.security.SecureClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.CodeSource) (/usr/lib/libgcj.so.5.0.0)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web553

  • via Oracle Community by PVM, 11 months ago
    com.sun.tools.javac.main.Main (erroneous method access flags) *at Jv ClassReader.throw_class_format_error(byte) (/usr/lib/libgcj.so.5.0.0)* *at Jv ClassReader.handleMethod(int, int, int, int) (/usr/lib/libgcj.so.5.0.0)* *at Jv
  • via Oracle Community by 843798, 1 year ago
    Main (unrecognized class file version) at java.lang.VMClassLoader.defineClass(natVMClassLoad er.cc:78) at java.lang.ClassLoader.defineClass(ClassLoader.java :483) at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java
  • FileManager (Bad magic number) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass (ClassLoader.java:502) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:123) at
  • Stack trace

    • java.lang.ClassFormatError: com.sun.tools.javac.main.Main (erroneous method access flags) *at Jv ClassReader.throw_class_format_error(byte) (/usr/lib/libgcj.so.5.0.0)* *at Jv ClassReader.handleMethod(int, int, int, int) (/usr/lib/libgcj.so.5.0.0)* *at Jv ClassReader.read_methods() (/usr/lib/libgcj.so.5.0.0)* *at Jv ClassReader.parse() (/usr/lib/libgcj.so.5.0.0)* *at Jv DefineClass(java.lang.Class, byte[], int, int) (/usr/lib/libgcj.so.5.0.0)* at java.lang.VMClassLoader.defineClass(java.lang.ClassLoader, java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0) at java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0) at java.security.SecureClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.CodeSource) (/usr/lib/libgcj.so.5.0.0) at java.net.URLClassLoader.findClass(java.lang.String) at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    4 times, 11 months ago