Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

Receiving error: "java.lang.NoClassDefFoundError: [Ljava/util/HashMap$Entry" when run testrail java API on JAVA 8, it work well on java 7, please help, thanks


I built Test rail java API in my code, it works well on java 7, when I upgraded to Java 8, I got following errors, please help, thanks

java.lang.NoClassDefFoundError: [Ljava/util/HashMap$Entry;
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.Class.privateGetDeclaredMethods(
at java.lang.Class.getDeclaredMethods(
at org.codehaus.groovy.util.LazyReference.getLocked(
at org.codehaus.groovy.util.LazyReference.get(
at groovy.util.ConfigSlurper.parse(ConfigSlurper.groovy:158)
at groovy.util.ConfigSlurper.parse(ConfigSlurper.groovy:146)


Hello David,

Thanks for your posting! Are you reusing the same jar compiled for Java 7 with Java 8? I seems that you would need to recompile the Java files as some HashMap internals have changed and the previously generated jar is no longer compatible. As the bindings are available in source code, you can simply recompile the binding with Java 8: