I am getting a ClassNotFoundException
on a class (HSSFWorkbook
) that is included in a JAR that is included in my build. The JAR is listed in this list (I am using Eclipse):
Project -> Properties -> Java Build Path -> Libraries
I have tried removing and adding it again, to no avail.
My code is as follows:
// ...
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
// ...
public class XLSWorkbook {
private HSSFWorkbook wb = null;
// ...
public XLSWorkbook() {
wb = new HSSFWorkbook();
}
}
And the exception is thrown when I try to instantiate the XLSWorkbook
class. The JAR I am using is the POI library from Apache (to be precise: poi-3.8-20120326.jar).