Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

cannot find file error while trying to complie a servlet



I have a class in C:\workspace\test\src\com\example\web\Test.java
I am trying to compile this servlet.
my javac is at C:\Sun\SDK\jdk\bin

i set the path like this set PATH=%PATH%;C:\Sun\SDK\jdk\bin

am at C:\workspace\test

I am compiling like this
javac -classpath /tomcat/common/lib/servlet-api.jar;classes:. -d classes src/com/example/web/example/web/Test.java

and i get cannot read:Test.java error

Please help