servlet-api at->C:\Tomcat\apache-tomcat-5.5.23\common\lib\servlet-api.jar Now I am trying to compile using: javac -classpath "C:\Tomcat\apache-tomcat-5.5.23\common\lib\servlet-api.jar;". -d classes -sourcepath src/com/examples/web/BeerSelect.java
It is not getting compiled giving the following error:
javac: no source files Usage: javac <options> <source files> use -help for a list of possible options
Nice to see that are still people which are compile from the command like (like in the good old times ) - your problem is the "-sourcepath src/com/examples/web/BeerSelect.java", you must specify the file to compile so remove the sourcepath and provde only the file to compile.
My advice is to use a IDE to compile or if you are a command line freak you can use a ant script to make your like easy.
Thanks! I tried with both -sourcepath src/com/examples/web BeerSelect.java as well as by removing the sourcepath altogether src/com/examples/web/BeerSelect.java But still facing the same error Please help.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop