Dropwizard: Dropwizard 1.3.0rc5 fails with UnsupportedClassVersionError on Java 8

Created on 8 Feb 2018  路  3Comments  路  Source: dropwizard/dropwizard

It seems like Dropwizard 1.3.0rc5 is compiled with JDK 9 and it's failing on JDK 8. Not sure whether it's intentional or not.

Exception in thread "main" java.lang.UnsupportedClassVersionError: io/dropwizard/Application 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
at java.lang.ClassLoader.defineClass1(Native Method)

bug

All 3 comments

Thank you for reporting this! It looks like we've indeed released 1.0.5 build against JDK 9. I will release 1.0.6 build with JDK 8 and change the build profile, so the build machine always compiles Dropwizard with the 1.8 target.

Thanks!.. 1.3.0-rc6 fixed the issue.

Was this page helpful?
0 / 5 - 0 ratings