I am creating EmbeddedKafkaCluster in Java test, but getting the following exception, but I have added the kafka_2.12 depedencies which have scala depedencies. Java version: 11 Added the following depedencies Exception: Answer Upgrading to kafka_2.13 solved the issue.