Monday, 4 August 2014

Caused by: java.lang.NoClassDefFoundError: java/util/HashMap$Entry in gradle using ConfigSlurper

If suddently  you gets this error:

 Caused by: java.lang.NoClassDefFoundError: java/util/HashMap$Entry  
it might means you are not using Java 7 anymore. So please be nice to check in console using command:

 java -version  
you have java version lower than 8...

The best way is to go Start>Control Panel>Add/Remove apps> and uninstall java jdk/jre version 8, leaving version 7.