K
khutch
Hope someone can help. I'm using Visual Age for Java 3.5.3. In my code
I have the following in a main() method:
InputStream input = POIExample.class.getResourceAsStream( "qa.xls" );
POIFSFileSystem fs = new POIFSFileSystem( input );
(see link: http://www.javaworld.com/javaworld/javaqa/2002-05/01-qa-0503-excel3.html
for full program)
where POIExample is the class in which I'm running the code. As you
can see I'm trying to get a handle on the spreadsheet qa.xls which is
held in the root of my C:\ directory (C:\qa.xls). On running the
main() method I get an error:
Uncaught exception (java.lang.NoClassDefFoundErrorrg.apache.poi.poifs.filesystem.POIFSFileSystem)
when I get to the second line of the above code. The class is indeed
imported with the statement:
import org.apache.poi.poifs.filesystem.POIFSFileSystem
so I guess its not finding the qa.xls spreadsheet. Any ideas?
Thanx
I have the following in a main() method:
InputStream input = POIExample.class.getResourceAsStream( "qa.xls" );
POIFSFileSystem fs = new POIFSFileSystem( input );
(see link: http://www.javaworld.com/javaworld/javaqa/2002-05/01-qa-0503-excel3.html
for full program)
where POIExample is the class in which I'm running the code. As you
can see I'm trying to get a handle on the spreadsheet qa.xls which is
held in the root of my C:\ directory (C:\qa.xls). On running the
main() method I get an error:
Uncaught exception (java.lang.NoClassDefFoundErrorrg.apache.poi.poifs.filesystem.POIFSFileSystem)
when I get to the second line of the above code. The class is indeed
imported with the statement:
import org.apache.poi.poifs.filesystem.POIFSFileSystem
so I guess its not finding the qa.xls spreadsheet. Any ideas?
Thanx