JK ~/Work-Space/Servlet/My Project/init-paramV1 $ javac -classpath /usr/share/tomcat6/lib/servlet-api.jar:classes:. -d classes src/com/example/web/initParam.java
javac: file not found: src/com/example/web/initParam.java
Usage: javac <options> <source files>
use -help for a list of possible options
i'm using Linux,i'm getting those errors file not found, i though there is some problem with ClassPath everything seems to be fine ,i'm not able to get what is the reason i'm getting this error and even path is correct and i'm in the respective folder/file too.
Arun Giridharan wrote:and i'm in the respective folder/file too.
Your software begs to differ. It's saying there is no "src" directory in your current working directory. Or if there is, then it doesn't have a "com" directory in it, and so on, but most likely your current working directory isn't right. You can find out these things using standard Linux commands.
And am I correct that your class is in the "com.example.web" package? If that's the case then it's the "src" directory which should be your current working directory.