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

后端 未结 3 904
逝去的感伤
逝去的感伤 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 19:00

    You might also have to add them to your project's classpath.

    for eclipse:

    Right click the jar, select build path and add it to the build path, then try again.

    for netbeans:

    in the project properties window click libraries in the left panel. In the right panel add it to the compile classpath

提交回复
热议问题