I wrote a simple test program exactly following the readme. However, the error is that Workbook is undefined.
import com.monitorjbl.xlsx.StreamingReader;
import java.io.*;
public class ExcelTest2 {
public static void main(String[] args) {
InputStream is = new FileInputStream(new File("example2.xlsx"));
Workbook workbook = StreamingReader.builder()
.rowCacheSize(100) // number of rows to keep in memory (defaults to 10)
.bufferSize(4096) // buffer size to use when reading InputStream to file (defaults to 1024)
.open(is);
}
}
I have included the jar file in the project (netbeans project). I don't use maven.
I wrote a simple test program exactly following the readme. However, the error is that Workbook is undefined.
I have included the jar file in the project (netbeans project). I don't use maven.