Let me preface by saying I am not very good at programming. Here I have a wordCount Scala code and I want to run as a JAR file for which I need to have a Java class with a main method forwarded to it.
I have created a class but I'm not sure where and how to place it
public class Class{
object SparkWordCount {
public static void main(args: Array[String]) {
val sc = new SparkContext(new SparkConf().setAppName("Spark Count"))
}
}
}
I want to create a Java class to my Scala code and run it as a JAR file.