When I compile / run the build on ant with eclipse neon on JDK 7 and below I got error message saying Unsupported must run on 1.8 or higher
. If I changed my ant
Eclipse Neon itself must be run using Java 8.
You can still use older Java versions to run your programs. Configure the available JRE/JDKs in the Preferences in 'Java > Installed JREs'. Then configure your project or Run Configuration to choose the version you want to use.
You can edit like this following(make sure with your installation path),
-vm
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
Ideally Neon should be run on java 1.8 but you can run neon on java 1.7
just change the java version in eclipse.ini file. Dosgi.requiredJavaVersion=1.7