I am getting the same error again and again. It does not show any code error, the object is in within the package.
Asked
Active
Viewed 53 times
-1
-
1Possible duplicate of [Could not find or load main class com.mycom.sparkWscala.streaming.kafkaWC](https://stackoverflow.com/questions/49206628/could-not-find-or-load-main-class-com-mycom-sparkwscala-streaming-kafkawc) – Mickael Maison Mar 10 '18 at 12:02
-
Please read [this article](http://idownvotedbecau.se/imageofcode) and [this related article](http://idownvotedbecau.se/imageofanexception/) to understand why people might download this post. – halfer Mar 10 '18 at 12:07
-
I think this problem has more to do with running the code in question from the scala-ide rather than with Apache Kafka itself. – Michal Borowiecki Mar 10 '18 at 16:55
1 Answers
0
The red x icon on your package and project indicates there is a compilation problem with some of the code, it seems to be in twitterdata.scala. While eclipse in general allows for partial compilation it may be that that it causes some problem for the scala-ide plugin. I suggest you try to fix or remove the offending code first. It is possible that the compilation does not produce the kafkaWC class, therefore when trying to run it, it reports the class not found error.
Hope that points you in the right direction.

Michal Borowiecki
- 4,244
- 1
- 11
- 18