You don't set your classpath in the System properties.
it's a commandline arg to the VM.
However, the class you are looking for is not in that JAR file -- there
are 3 jars to the POI (someone correct me) the class you are looking for
is in
poi-3.0-alpha3-20061212.jar
make sure you put that in your classpath and seperate the jars with a
';' if you're on windows or a ':' on unix style systems
Harkirat Guron wrote:
Hello Christian,
Thanks for reply, I am getting error
"C:\Java\POIExample.java:4: package org.apache.poi.poifs.filesystem does
not exist"
I set my class path in System properties - User variables as :
CLASSPATH = c:\java\poi-2.5.1-final-20040804.jar
My Code is:-
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.HSSFRow;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/