Integration test java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.test.ESTestCase

I'm a bit confused since both jars "in conflict" belong to the sdk, full debug message is:

java.lang.RuntimeException: found jar hell in test classpath

	at org.elasticsearch.bootstrap.BootstrapForTesting.<clinit>(
	at org.elasticsearch.test.ESTestCase.<clinit>(
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(
	at com.carrotsearch.randomizedtesting.RandomizedRunner$
Caused by: java.lang.IllegalStateException: jar hell!
jar1: /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/lib/ant-javafx.jar
jar2: /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/lib/packager.jar

The jdk unfortunately has jar hell with itself. All the jars in lib are not meant to be used together. See the last note in this paragraph about IntelliJ setup in thecontributing docs:

You may also need to remove ant-javafx.jar from your classpath if that is reported as a source of jar hell.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.