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.