Hello,

I am having a lot of trouble writing a simple POI app to access an Excel
file.  My Java background is next to nil (I use common lisp), except for
helping my kids with beginning programming courses (I was learning along
with them).

I downloaded and extracted POI, and wrote a small java file, modeled after a
tutorial I found on the web.  It is currently littered with various import
attempts:
==================
//import org.apache.poi.hssf.usermodel.HSSFSheet;
//import poi;
//import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import org.apache.poi.ss.usermodel.charts; // found in jar file
//import org.apache.poi.xssf.eventusermodel.XSSFReader;
//import org.apache.poi.xssf.model.SharedStringsTable;
//import org.apache.poi.openxml4j.opc.OPCPackage;
public class poiLink{
}
===================

For compilation I use:
/c/Program\ Files/Java/jdk1.8.0_11/bin/javac.exe -cp
'.;:c/java-libs/poi-3.10.1/poi-3.10.1-20140818.jar' poiLink.java

where for the class path I use the jar file path in the downloaded POI distro. 

The error is:
poiLink.java:5: error: package org.apache.poi.ss.usermodel does not exist
import org.apache.poi.ss.usermodel.charts;
                                  ^
1 error

Am I incorrectly specifying the jar file?  Is the syntax incorrect?  I
looked at Oracle, stack overflow, tried many things, and I must be missing
something obvious.

Thanks,

Mirko




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to