Best is to be sure to run with an Java JDK instead of an JRE.
You can change this under Window > Preferences > Java > Installed JREs:
![Installed JREs][1]
The other workaround is to disable the --release option in the Java Compiler Settings of your Project:
![Disable -- release option][2]
[1]: https://answers.axonivy.com/upfiles/Screenshot_20200626_135545.png
[2]: https://answers.axonivy.com/upfiles/Screenshot_20200626_135224.png