How to add JAR libraries to WAR project without facing java.lang.ClassNotFoundException? Classpath vs Build Path vs /WEB-INF/lib

前端 未结 6 1668
一个人的身影
一个人的身影 2020-11-22 01:23

How should I add JAR libraries to a WAR project in Eclipse without facing java.lang.ClassNotFoundException or java.lang.NoClassDefFoundError?

6条回答
  •  余生分开走
    2020-11-22 02:27

    Resolved by setting permissions. Had related issue using PySpark and Oracle jdbc. The error does not state that the file cannot be accessed, just that the class cannot be loaded.

    So if anyone still struggles, check the permissions. Some might find it obvious tho'.

提交回复
热议问题