I\'ve spent hours going through You Tube vids and tutorials trying to understand how I run a run a word count program for Spark, in Scala, and the turn it into a jar file. I\'m
You can always do WordCount extends App and this should work. I believe its about the way you have structured your project.
Read more about the app trait here.
http://www.scala-lang.org/api/2.12.1/scala/App.html
In any case, please make sure that your directory layout looks like this.
./build.sbt
./src
./src/main
./src/main/scala
./src/main/scala/WordCount.scala