title: Change to jdk 7 in eclipse(sts)
body: <p>How do I switch project from JDK 6 to 7, I know I am not using it because switch doesn't accept String.</p>
  
  <p>In build path I have jre 7 in compiler settings I have 1.7 , everywhere and it still doesn't work. I use Spring Tool Suite(Eclipse based) latest version which officially supports Java 7.</p>
  
  <p>And in project facets I also have 1.7. Why it has to be so bloody difficult.</p>
  
  <p>And in .ini I have perfectly correct C:\Program Files\Java\jdk1.7.0\bin\javaw.exe
  -startup</p>
  
  <p>And I am sure my IDE supports 7 because whenever I create new project I have not syntax errors with String switch statement.</p>
  
  <p>And my JAVA HOME set to JDK 1.7 :-)</p>
  
  <p>UPDATE: The problem only happens with projects of Spring nature.</p>
  
  <p>UPDATE 2: Happens with template Spring MVC project, Spring Hibernate template apparently works with Java 7.</p>
  
  <p>Totally confused.</p>