문제

Hi I have a weird problem where when I run my webapp, I get a NoClassDefFoundError

But when I check in Eclipse, I find the .jar file (Jnotify.jar) and it shows all the classes. Same case when I import the .war file of my webapp I see the classes in the dependencies.

What could be my problem?

Thanks!

도움이 되었습니까?

해결책

I found what was causing the error:

JNotify has specific Library DLL, I was placing them corectly in java.library.path but the problem is Tomcat doesn't look for those libraries unless the corresponding .jar files are in Tomcat/lib.

So adding my jnotify.jar to tomcat/lib fixed my problems.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top