java.lang.VerifyError with Hadoop java.lang.VerifyError with Hadoop hadoop hadoop

java.lang.VerifyError with Hadoop


I solved my problem.

The imported jar was good, but another version (probably older one) which I had tried earlier, was also in the project folder. When I called the class, it appears that older version of the jar in was used. Also, that jar was before the one I wanted in the class path. I deleted the older jar from the project folder and it worked.