Boas pessoal nao to conseguindo sair de uma erro básico !
Estou a tentar realizar um exercicio d´um livro e tenho o seguinte senario:
Estou com o seguinte problema, estou a tentar compilar o meu .java file com o seguinte comando :
C:\MyProjects\beerV1>javac -classpath C:\Programas\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar:classes:. -d classes src\com\example\web\BeerSelect.java
Mas estou a receber o seguinte erro :
C:\MyProjects\beerV1>javac -classpath C:\Programas\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar:classes:. -d classes src\com\example\web\BeerSelect.java
javac: invalid flag: Software
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
sed
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
O meu objectivo é : compilar este servlet (.java) com o jar file (servlet-api.jar) que esta na pasta lib do tomcat e colocar o fiheiro (.class)que ele gerou na directoria que indiquei no comando.
Agradeço desde ja a ajuda !