Skip to content
Advertisement

NoClassDefFoundError: scala/collection/convert/AsJavaExtensions

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

JavaScript

Exception:

JavaScript

Advertisement

Answer

Upgrading to kafka_2.13 solved the issue.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement