C:\Dokumente und Einstellungen\ds\Desktop\MyProjects\beerV1>C:\Programme\Java\jd
k1.5.0_08\bin\javac -classpath C:\Programme\apache-tomcat-5.5.20\apache-tomcat-5
.5.20\common\lib\servlet-api.jar:classes:. -d classes src\com\example\web\BeerSe
lect.java
src\com\example\web\BeerSelect.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
src\com\example\web\BeerSelect.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
src\com\example\web\BeerSelect.java:7: cannot find symbol
symbol: class HttpServlet
public class BeerSelect extends HttpServlet {
^
src\com\example\web\BeerSelect.java:8: cannot find symbol
symbol : class HttpServletRequest
location: class com.example.web.BeerSelect
public void doPost(HttpServletRequest request, HttpServletResponse respo
nse) throws IOException, ServletException {
^
src\com\example\web\BeerSelect.java:8: cannot find symbol
symbol : class HttpServletResponse
location: class com.example.web.BeerSelect
public void doPost(HttpServletRequest request, HttpServletResponse respo
nse) throws IOException, ServletException {
^
src\com\example\web\BeerSelect.java:8: cannot find symbol
symbol : class ServletException
location: class com.example.web.BeerSelect
public void doPost(HttpServletRequest request, HttpServletResponse respo
nse) throws IOException, ServletException {
^
6 errors
C:\Dokumente und Einstellungen\ds\Desktop\MyProjects\beerV1>C:\Programme\Java\jd
k1.5.0_08\bin\javac -classpath C:\Programme\apache-tomcat-5.5.20\apache-tomcat-5
.5.20\common\lib\servlet-api.jar -d classes src\com\example\web\BeerSelect.java
C:\Dokumente und Einstellungen\ds\Desktop\MyProjects\beerV1>C:\Programme\Java\jd
k1.5.0_08\bin\javac -d classes src\com\example\model\BeerExpert.java
Note: src\com\example\model\BeerExpert.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
SCJP5<br />SCWCD<br />SCBCD (preparing)<br />IBM/Lotus CLS, CLP, PCLP R5/R6/R7<br />LPIC-1, LPIC-2
C:\Dokumente und Einstellungen\ds\Desktop\MyProjects\beerV1>C:\Programme\Java\jd
k1.5.0_08\bin\javac -classpath C:\Programme\apache-tomcat-5.5.20\apache-tomcat-5
.5.20\common\lib\servlet-api.jar -d classes src\com\example\web\BeerSelect.java
src\com\example\web\BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
src\com\example\web\BeerSelect.java:16: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
src\com\example\web\BeerSelect.java:16: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
3 errors
SCJP5<br />SCWCD<br />SCBCD (preparing)<br />IBM/Lotus CLS, CLP, PCLP R5/R6/R7<br />LPIC-1, LPIC-2
SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
copy you servlet source files to the JDK_dir/bin folder , compile the files there, copy the class files to the desired direcotyr in tomcat, and its done.
[My Blog]
All roads lead to JavaRanch
SCJP5<br />SCWCD<br />SCBCD (preparing)<br />IBM/Lotus CLS, CLP, PCLP R5/R6/R7<br />LPIC-1, LPIC-2
SCJP5<br />SCWCD<br />SCBCD (preparing)<br />IBM/Lotus CLS, CLP, PCLP R5/R6/R7<br />LPIC-1, LPIC-2
Turn on, tune in, drop out.