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
I faced the same error
I faced the same error previosly, and it got resolved by re setting my system variables. My classpath was missing tools.jar present in lib directory of JDK . I added it to my classpath and bin folder of my JDK folder to my path and things worked fine.There is a : at the end of ur -classpath , don't know why , it should be semicolon. try setting the classpath before you do Javac.
Post new comment