I updated my system to run off of Java 9 primarily and my spring projects are also supporting Java 9. I have an issue however with my Spring Tool Suite (Eclipse 4.7.2) where the program is saying that my code is incompatible with my source level compatibility settings and must be JRE 1.5 and up (parameterized types for example).
In my Project properties my Compiler Compliance Level and Source Compatibility is set to '9'. In my Window->Preferences, I have set my checked installed JRE to the location of my Java jdk-9.0.1 folder.
Here is my sts.ini (eclipse.ini) file:
STS.ini
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.551.v20171108-1834
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM
-Xms40m
-Dosgi.module.lock.timeout=10
-Xverify:none
-Dorg.eclipse.swt.browser.IEVersion=10001
-Xmx768m
--launcher.appendVmargs
-vm
C:\Program Files\Java\jdk-9.0.1\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM
Any help solving this problem would be greatly appreciated.