Problem compiling servlet
I'm having trouble compiling a servlet the uses the org.apache.poi
library. These are the import statements I use:
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.poi.poifs.filesystem.POIFSFileSys
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.util.SheetReferences;
The jar file containing the POI library is called poi-2.5.1-final-20040804.jar
I'm compiling using javac directly, without any IDEs. What should my CLASSPATH environment variable contain to make sure the servlet libraries and the poi libraries are recognized, and do I need to restart the machine so that the changes can take effect? These are the contents of the CLASSPATH variable now:
.;C:\Archivos de programa\Java\jre1.5.0_05\lib\ext\QTJava.zip
these are some of the errors I get:
package javax.servlet does not exist
package org.apache.poi.poifs.filesystem does not exist
The servlet java file is inside the webapp directory:
C:\Archivos de programa\Apache Software Foundation\Tomcat 5.5\webapps\cerberus3\WEB-INF\classes\evenseg\eximport
Any help would be appreciated, thanks.

