The problem is that class file is not automatically generated by eclipse.. since it is not there in .classpath file. To resolve it either edit .classpath file manually or add the source dir in you project build path, you can do it by right click on project, click on project properties, then a window appears. in left pane there is build path click on it and configure properly