Hi !
I'm
Java student and english too...
I have a problem. I found errors when try compile servlet-api.jar from
Tomcat. Below, follow my environment and line commands:
CLASSPATH :
.;C:\Sun\SDK\bin;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\jdk\bin
CATALINA_HOME :
c:\Tomcat
JAVA_HOME:
c:\Sun\SDK\JDK
PATH:
C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Arquivos de programas\Borland\Delphi7\Bin;C:\Arquivos de programas\Borland\Delphi7\Projects\Bpl\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Arquivos de programas\Microsoft SQL Server\80\Tools\BINN;%PATH%;%JAVA_HOME%\bin;%PATH%;\des\delphi7\bpl
source path:
C:\Des\Java\web\proj\beerV1>
command to compile:
javac - classpath \Tomcat\common\lib\servlet-api.jar:classes:. -d classes src/com/example/web/BeerSelect.java
Well, the compiler found the errors. My mind said... the compiler not found the path with servlet-api.jar ( in other words, tomcat/common/lib ) because my source code java (BeerSelect.java) got
library errors ( not found javax.HttpServlet.*; javax.Servlet.*; )
example:
In my computer, the TomCat is in directory c:\Tomcat\.....
what's wrong ?
Thank´s