Home > Enterprise >  NoClassDefFoundError: scala/collection/StringOps
NoClassDefFoundError: scala/collection/StringOps

Time:09-17

I keep getting this exception java.lang.NoClassDefFoundError: scala/collection/StringOps$ but I have org.scala-lang:scala-library:2.13.6:jar on my classpath. Do you know how to resolve this issue?

build.sbt

scalaVersion := "2.13.6"
libraryDependencies   = Seq( "org.apache.spark" % "spark-core_2.12" % "3.1.2")

CodePudding user response:

Spark 3.1 is compatible with scala 2.12, so I needed to downgrade to scalaVersion := 2.12

  • Related