title: Source is not a java project : Can't create java class
body: <p>I have been following the Spring guides. One particular <a href="https://spring.io/guides/gs/service-registration-and-discovery/" rel="nofollow noreferrer">guide</a> has been causing some problems.</p>
  
  <p>I'm using STS as my development environment. I pulled the initial version of the service registration and discovery using eureka guide, but when I try to create my java file <code>eureka-service/src/main/java/hello/EurekaServiceApplication.java</code> it gives me.</p>
  
  <blockquote>
    <p>Source Folder is not a java project.</p>
  </blockquote>
  
  <p>Just to be sure I pulled the completed version of the guide. It's parent folder isn't a java project either but it has the <code>eureka-service/src/main/java/hello/EurekaServiceApplication.java</code> file in place.</p>
  
  <p>Interestingly when I tried to create a new java file into the completed project I run into the same error.</p>
  
  <p>So how do I create that java file also if my final aim is the completed guide whose parent directory is not a java project, should I make manual changes to the initial guide and make it a Java project?</p>
  
  <p>Edit: The project also isn't recognized as a Spring-Boot app.</p>