Exception in thread "main" java.lang.ClassNotFoundException: com.dezyre.DezyreWordCount


4 Answer(s)


Hi Ramesh,
DezyreWordCount is not found on the location specified by you.
To check and confirm,
open the jar in eclipse and check the package path and also check the name of the DezyreWordCount.
Made the changes according to the requirement and you are set to go.
Hope this helps.
Thanks.

I checked and the jars are available and still getting the same error. Please resolve the same.

Hi Ramesh,
Could you share the snapshot of the Eclipse where your DezyreWordCount File is open.
Please take the complete snapshot of eclipse showing the hierarchy of the files.
Thanks

hi Ramesh,

Check the package and class name where the "Main" method is written.