I've been an HSSF user for a little while.
I have this problem, perhaps a stupid beginning problem.
I have unloaded the "jakarta-poi-1.4583-dev-bin.zip" file from
http://jakarta.apache.org site
Unzipping this file I have used the file jakarta-poi-1.1-dev.jar in the classpath of
my development tool (ORACLEJDev9i) relating to a new project.
The used application is that shown in the examples directory of
HSSF/jakarta.apache.org site and is repoted below:
//**********************************************************
package org.apache.poi.hssf.usermodel.examples;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* This example creates a new blank workbook. This workbook will contain a single
blank sheet.
*
* @author Glen Stampoultzis (glens at apache.org)
*/
public class NewWorkbook
{
public static void main(String[] args)
throws IOException
{
HSSFWorkbook wb = new HSSFWorkbook();
String path="C:/JavaAppl/KmsWorkspace/ProjectWorkBook/classes/workbook.xls";
FileOutputStream fileOut = new FileOutputStream("workbook.xls");
wb.write(fileOut);
fileOut.close();
}
}
//**********************************************************
During the compilation I have no problems, but when I execute I receive this problem:
Exception in thread main
java.lang.NoClassDefFoundError: org.apache.poi.hssf.HSSFLog void
org.apache.poi.hssf.usermodel.HSSFWorkbook.<clinit>() void
org.apache.poi.hssf.usermodel.examples.NewWorkbook.main(java.lang.String[]) Process
exited with exit code 1.
What could be the problem?
Thanks to all
Ing. Michele Ezza
E-mail: [EMAIL PROTECTED]
tel. 080-5016227
AMT Services
Via Cancello Rotto, 3/C
70125 - Bari
www.amtservices.it