I am trying to write data into MS excel. I downloaded "poi-bin-2.5.1-final-20040804" from http://jakarta.apache.org/poi/ Than I set my Classpath to "C:\j2ee\POI" (this is where I have poi-2.5.1-final-20040804.jar, poi-contrib-2.5.1-final-20040804.jar and poi-scratchpad-2.5.1-final-20040804.jar) When I use import org.apache.poi.*; HSSFWorkbook workBook = new HSSFWorkbook();
I get the following error.
BPM1.java:3: package org.apache.poi does not exist import org.apache.poi.*;
are you talking about writing/compiling a java application ?
you do not put direcetories on the classpath but the individual jar files. why dont you use an IDE ? perhaps you should learn the concepts of java first before trying to use POI...this was not advanced...
Joined: Sep 19, 2005
Pascal, Sorry, I thought this to be advanced . I am writing a Java program where I must write into MS excel. I tried searching in Google for good resource but couldn't find. Can you please let me know where I can learn basics about handling MS word and excel.