Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. AndroidDxRunner.main() has thrown an UnsupportedClassVersionError
    Unsorted
    2
    0
    0
  2. ClassLoader.defineClass() has thrown an UnsupportedClassVersionError
    Java Runtime
    433
    768
    233

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.UnsupportedClassVersionError: com/android/dx/command/dexer/Main : 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)
10 frames hidden

Solution

Shane Rogers11 months ago

This exception occurs when using an older version of java. Mainly when trying to run a jar compiled with a newer Java version in an older Java version. We can avoid this issue by executing the jar in the same version which it was compiled.

Check the source of this solution for more info

External results for this pattern (10)

  1. Martin Doreyvia Google Groups6 days ago
    Bad version number in .class file
    Show stack trace
  2. Linn Jensenvia Google Groups6 days ago
    gov/nasa/jpf/tool/RunJPF : Unsupported major.minor version 52.0
    Show stack trace
  3. maghervia Google Groups6 days ago
    MainApp : Unsupported major.minor version 52.0
    Show stack trace
  4. yacchin1205via GitHub6 days ago
    com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystem : Unsupported major.minor version 52.0
    Show stack trace
  5. aakash joshivia Google Groups1 week ago
    org/togglz/console/TogglzConsoleServlet : Unsupported major.minor version 52.0
    Show stack trace
  6. Jainath Guptavia Google Groups1 week ago
    org/uberfire/ext/security/server/SecureHeadersFilter : Unsupported major.minor versio n 52.0
    Show stack trace
  7. Unknown authorvia Google Groups1 week ago
    net/maizegenetics/pipeline/TasselPipeline : Unsupported major.minor version 52.0
    Show stack trace
  8. Jimmyvia Google Groups1 week ago
    mainFunction/mainFunction : Unsupported major.minor version 52.0
    Show stack trace
  9. evansdarryl3via GitHub2 weeks ago
    ex112 has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
    Show stack trace
  10. vasigorcvia GitHub2 weeks ago
    com/colinalworth/gwt/websockets/rebind/ServerBuilderGenerator : Unsupported major.minor version 52.0
    Show stack trace