I've got this error when I call my class:
This is the error:
It is a fresh download. I just loaded the POI-HSSF and want try something to do with it.
How to fix it?
Vadim
Code:
import java.io.*;
import org.apache.poi.hssf.usermodel.*;
public class HssfExample {
public HssfExample()
{
try{
File f = new File("c:/workbook.xls");
f.createNewFile();
InputStream myxls = new FileInputStream(f);
HSSFWorkbook wb = new HSSFWorkbook(myxls);
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
This is the error:
Code:
java.lang.UnsupportedClassVersionError: org/apache/poi/hssf/usermodel/HSSFWorkbook (Unsupported major.minor version 49.0)
How to fix it?
Vadim