Error: Could not find or load main class org.test.spark011.word


3 Answer(s)


Hi,

Check if Your main class in on build path.

Project -> Properties -> Java Build Path -> Source tab

If not add appropriate folder(s).

Thanks.


I have the same error:

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

org.test.spark is a package created under source folder and should be in the build path.

Please advise how to add folder to:

Project -> Properties -> Java Build Path -> Source tab


Hi,

While running Spark program in my virtual box ,I am getting Could not find or load main class.

Plz suggest how to add folder to:

Project -> Properties -> Java Build Path -> Source tab