I'm trying to use spire.xls and I get a null pointer exception on the very first line (Workbook workbook0 = new Workbook();). Thanks for your help.
- Code: Select all
public Test(){
Workbook workbook0 = new Workbook();
}
java.lang.NullPointerException
at com.spire.xls.packages.sprhya.spr (Unknown Source)
at com.spire.xls.packages.sprhya.spr (Unknown Source)
at com.spire.xls.packages.sprhya.spr (Unknown Source)
at com.spire.xls.packages.sprhya.<init>(Unknown Source)
at com.spire.xls.packages.sprnqa.<init>(Unknown Source)
at com.spire.xls.packages.sprDpa.<init>(Unknown Source)
at com.spire.xls.core.spreadsheet.XlsWorkbook.<init>(Unknown Source)
at com.spire.xls.Workbook.<init>(Unknown Source)