I have been having problems trying to use POI. I am using Windows Vista Business SP1 (32-bit). I uninstalled my JDK and JRE, then reinstalled the latest JDK (1.6.0_14), but not the JRE. I copied the JARs I need (JavaMail, MS SQL Server and Xerces) into my %JAVA_HOME%\jre\lib\ext directory. Tests using those JARs were successful. I downloaded the ZIP file of the latest latest release version, version 3.2. I opened the ZIP file, then copied poi-3.2-FINAL-20081019.jar, poi-contrib-3.2-FINAL-20081019.jar, and poi-scratchpad-3.2-FINAL-20081019.jar to the %JAVA_HOME%\jre\lib\ext directory. I am still getting compiler errors trying to create a workbook using POI. I have included a sample program and the compiler errors below. What am I doing wrong?

- Paul Ackerman

public class ExcelTest
{
   public static void main(java.lang.String[] args) throws java.lang.Exception
   {
org.apache.poi.xssf.usermodel.XSSFWorkbook workbook = new org.apache.poi.xssf.usermodel.XSSFWorkbook();
   }
}

javac ExcelTest.java
ExcelTest.java:5: package org.apache.poi.xssf.usermodel does not exist
org.apache.poi.xssf.usermodel.XSSFWorkbook workbook = new org.apache.poi.xssf.usermodel.XSSFWorkbook();
                                    ^
ExcelTest.java:5: package org.apache.poi.xssf.usermodel does not exist
org.apache.poi.xssf.usermodel.XSSFWorkbook workbook = new org.apache.poi.xssf.usermodel.XSSFWorkbook(); ^
2 errors





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

Reply via email to