  | | | Subject: Classpath for POI jar files | Subject: Classpath for POI jar files 2007-03-07 - By Christian Bongiorno
Back 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 (See http://poi-3.ora-code.com).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 (See http://poi-2.ora-code.com).5.1-final-20040804 (See http://nal-20040804.ora-code.com).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: poi-user-unsubscribe@(protected) Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
|
|
 |