Scala code run successfully in Eclipse but its jar not run

Scala code run successfully in Eclipse but its jar not run

SBT version installa on system = 0.13.8
scala version= 2.12.2
java 1.8

I have Scala project with SBT , its run well in eclipse but when i try to run .jar file
which is generated after packaging is not runing its throw error like


Exception in thread “main” java.lang.NoClassDefFoundError: scala/collection/Seq
at com.percipient.kafka.RuningApp.main(RuningApp.scala)
Caused by: java.lang.ClassNotFoundException: scala.collection.Seq
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
… 1 more

build.sbt as below

name :=“KafkaLag”

version :=“1.0”

scalaVersion :=“2.12.0”

crossPaths := false

mainClass in (Compile, packageBin) := Some(“com.percipient.kafka.RuningApp”)

ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }

libraryDependencies += “org.apache.kafka” %% “kafka” % “2.1.0”

libraryDependencies += “org.scala-lang” % “scala-library” % “2.12.0”

scalacOptions ++= Seq("-unchecked", “-deprecation”)


Please co-operate me to solve this issue