DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22609>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22609

HSSFWORKBOOK looking for Log4J?

           Summary: HSSFWORKBOOK looking for Log4J?
           Product: POI
           Version: 2.0-pre3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: HSSF
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<clinit>
(HSSFWorkbook.java:115)
        at com.qinteraction.Excel.AnotherExcel.main(AnotherExcel.java:24)
Exception in thread "main" 

This error comes out when I run a simple program using HSSFWORKBOOK.

import java.io.*;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

public class FirstExcelTest {

        public static void main(String[] args) {
                HSSFWorkbook wb = new HSSFWorkbook();
                FileOutputStream fileOut=null;
                try {
                        fileOut = new FileOutputStream("c:\\workbook.xls");     
                
                        wb.write(fileOut);                       
                        fileOut.close();                
                } catch (FileNotFoundException e) {             
                        e.printStackTrace();
                } catch (IOException e1) {              
                        e1.printStackTrace();
                }        
        }
}

What's wrong with this code??
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<clinit>
(HSSFWorkbook.java:115)
        at com.qinteraction.Excel.AnotherExcel.main(AnotherExcel.java:24)
Exception in thread "main"

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to