Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot import a package

Status
Not open for further replies.

busy_bee

Programmer
Oct 9, 2020
14
US
I am creating a JSP page UploadFile.jsp. I keep getting the error. The org.apache.commons.fileupload.disk cannot be resolved. I need the package for the DiskFileItemFactory class.

Based on my online research, I pasted the following JAR files to the WEB-INF/lib folder. commons-fileupload-1.0-5.5.23.jar, commons-io-2.11.0.jar, org.apache.commons.io.jar and poi-3.17.jar. I still kept getting the error. I then added these JAR files to the classpath but it did not resolve the issue.

I have attached an image of my Eclipse page for reference. I am working on the More_Exercises project.
 
 https://files.engineering.com/getfile.aspx?folder=6f76e062-fb34-4df6-8407-50a065b92ea2&file=Image1.JPG
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top