Java – package org.apache.poi.ss.usermodel does not exist error

apache-poijavajdeveloperoracle-adf

I have a problem related to my adf application in jdeveloper 11g. When i build my application,i take these errors:

enter image description here

These errors in code-behind:

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.DateUtil;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;

I have investigated this error and i have learned that this error is related to apache poi. I have controlled my application and i have poi-3.9-20121203.jar file in my application folder :

C:\roket1\ViewController\public_html\WEB-INF\lib

What can i do to get rid of these errors ?
Thanks in advance.

Best Answer

If you are using JDeveloper then you can add libraries to your classpath with the following:

Add the JAR files you want to be in the classpath to the project's libraries. (Double click on a project to go to project settings - libraries- and shuttle the correct libraries to the right , or add your own libraries.