I have Eclipse Oxygen running on JRE 1.8 but building some old 1.7 projects, and have jdk1.7.0_40
installed as a separate JRE and set up in the tools external config, but still got the "jre less than 1.8 not supported" error.
What fixed it for me was just updating the build xml configuration directly, especially if you have another project which does work that you can copy from.
Specifically, I went to the launch configurations at:
workspace/.metadata/.plugins/org.eclipse.debug.core/.launches
And edited the relevant ...build.xml.launch
file, replacing:
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_40"/>
With:
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_NAME" value="jdk1.7.0_40"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_TYPE_ID" value="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType"/>
And restarted Eclipse to pick it up.
No idea if this is moving forward or backwards in terms of Eclipse support, but it fixed my problem.