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=12671>.
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=12671

NoClassDefFoundError: org/apache/log4j/Logger

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|POI Overall                 |HSSF
           Platform|Other                       |All
            Summary|Log4j not working when POI  |NoClassDefFoundError:
                   |jar files included in the   |org/apache/log4j/Logger
                   |same webapp.                |



------- Additional Comments From [EMAIL PROTECTED]  2003-08-21 02:40 -------
This is the code: Below is the error message.What seems to be the problem?Do i 
have to know Logger of Log4J to use HSSF?

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();
                }        
        }
}

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