开发者

Adding JAR to eclipse project

开发者 https://www.devze.com 2022-12-23 20:18 出处:网络
I am trying to use JTidy on google app engine. In Eclipse, I add JTidy jar to the b开发者_如何学Cuild path and add the jar again as the source attachment.When I make a tidy object it shows up as a org

I am trying to use JTidy on google app engine. In Eclipse, I add JTidy jar to the b开发者_如何学Cuild path and add the jar again as the source attachment. When I make a tidy object it shows up as a org.w3c.tidy.Tidy. but when I run my app i get the error java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy. Am I not adding the jar correctly? Does JTidy not work on google app engine?


The JAR needs to be added to the lib folder in war/WEB-INF


Add the jar to war/WEB-INF/lib and also right-click on the project, configure build path. Their add external libraries.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号