Hi today I installed java 17 and eclipse(with latest version- 2021‑09). But after all configuration it is showing JavaSE-16 as jdk version. I ignored it and started writing a program with sealed classes. Then it is showing an error. I managed to solve the problem by installing the Java-17 support plugin from eclipse marketplace. Is it possible in eclipse without installing anything.
CodePudding user response:
The release notes state this:
Supports Java 17, including Pattern Matching for Switch (Preview), Sealed Classes, and more via Eclipse Marketplace
That means currently you have to install the plugin, later support will be included. You might also want to read this: https://www.eclipse.org/eclipse/news/4.21/jdt.php
CodePudding user response:
Install java 17 plugin from this link. Then your likely to have a content assist error. Fix it by this answer.