I am having a Maven project. When I run the project I am getting error. The cause of the error is
Caused by: java.lang.NoSuchMethodError: org.w3c.tidy.Tidy.setHideComments(Z)V
I thought jar might be missing in Maven repository. But I found the jar in that repository.
I have jtidy-4aug2000r7-dev.jar at C:\.m2\repository\jtidy\jtidy\4aug2000r7-dev
Can some one tell the probable reason for the problem.
I guess the problem might be with the version of the
jtidy.jar. The current version you have mentioned is quite old (Aug 4, 2000).I have googled the version
4aug2000r7-dev.jarand found outAPI.
I don’t see
setHideComments()method in Tidy.javaPlease check you do not have multiple version of the same jar.
Try
JTidy 8.0-SNAPSHOThere. It contains the method.