Error: Could not find or load main class org.test.spark.streamExample

kumar picture kumar · Dec 22, 2015 · Viewed 24.9k times · Source

I was trying to execute sample basic sparkstreaming example in Scala IDE, but I am getting below error:

Error: Could not find or load main class org.test.spark.streamExample.

Could anyone help me to sort out this please.

Answer

sudhir picture sudhir · Dec 28, 2015

RightClick on your project and go to properties where you will find Scala Compiler, change target to jvm 1.7 based on your installation and also change Scala Installation dropdown based on version you have installed