In Java 9, the supported values are shown as follows:
Supported values | Remarks |
9 | This is the default, should no value be specified |
8 | Sets support to 1.8 |
7 | Sets support to 1.7 |
6 | Sets support to 1.6 and generates a warning (not an error) to indicate JDK 6 is depreciated |