Specifying it's a Java project

With these extra lines Eclipse will recognize it's a java project. And import all the necessary packages necessary to compile