I have a java web application. Previously I compiled all .java files with JDK 15. But because of some 3rd party apps I had to switch to JDK1.8. Now the problem is when I build the project .class files are not updated. I have checked the version with javap -verbose ClassName.class | findstr "major"
command. Class version is still 59.0. I have already tried steps in this link Why isn't Eclipse updating the classes?. I have also checked JAVA_HOME and Path variable. These are set to JDK1.8 And here are other configurations in eclipse
- JRE System Library is jre1.8
- Project -> Properties -> Builders, Java Builder is checked
- Project -> Properties -> Java Build Path -> Order and Export JRE System Library is checked
- Checked .project file
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
above configurations are present.
Is there anything that I am missing?
CodePudding user response:
Make sure in Properties > Project: Java Build Path tab Source the correct output folder(s) are configured.