Setting up project as Java project