title: Can't run Java 7 on Spring 2.5 App. Says it needs Java 1.5 or Later
body: <p>I am currently using the VSCode ide to work with a Spring 2.5 application with Maven. Because of the old Spring version, I understand that the app will not recognize Java versions beyond 7. I also posted previously about the exact same problem, and was informed that my Tomcat version was incompatible with Java apps before 8.</p>
  <p>To combat this, I downloaded and installed Tomcat 8.5, and installed Java 7, which should be able to work with eachother based on my research. However despite this change, I have run into the same error as before.</p>
  <p>[Tomcat 8.5]: Jul 27, 2021 2:18:55 PM org.apache.catalina.core.StandardWrapperValve invoke
  SEVERE: Allocate exception for servlet [SiteAdmin]
  java.lang.IllegalStateException: Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higher</p>
  <p>I have tried changing the Java compile source and target in the pom.xml file, as well as changing the jdk to 1.7, but the problem persists.</p>
  <p>I should mention I do also have Java 11 installed on my computer, due to it being a requirement to run the VSCode IDE. Also despite setting the system path variables to point otherwise, running Java -version results in version 11 being called. I do not know why this is the case, but it may be related to the problem.</p>
  <p>Any help on this issue would be appreciated.</p>