That mean's you can compile a java file at the relative path.
Um no. This means you can retrieve the necessary dependencies at either D:\project1\src or at d:\tomcat\lib\servlet-api.jar.
That's not relevant to this particular error though. This error is because the compiler can't tell you have a source file. You are missing a space.