jars added to WEB-INF/lib doesn't get recognized when I try to import them : says the package doesn't exist

后端 未结 3 941
逝去的感伤
逝去的感伤 2021-01-21 18:12

I have added org.apache.commons.fileupload and org.apache.commons.io package into the WEB-INF/lib directory of my project based on google

3条回答
  •  遇见更好的自我
    2021-01-21 18:46

    General solution , whenever you get package does not exist then there are 2 things, 1- Its not at all present 2) its present but still the error is thrown. The solution to this is to just add the jar to the classpath [so that your app finds it during compilation,execution)

    I would suggest you to try Maven . Maven is a nice way by which you can organize this in a systematic way.

提交回复
热议问题