Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Incorrect version of POI HSSF

Status
Not open for further replies.

botatun

Programmer
Mar 7, 2006
40
US
I've got this error when I call my class:
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)
It is a fresh download. I just loaded the POI-HSSF and want try something to do with it.
How to fix it?
Vadim


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top