·
- Download the JDK: https://www.oracle.com/java/technologies/javase-jdk14-downloads.html
- Install it
- Download last version of eclipse: https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2020-06/M1/eclipse-inst-win64.exe
- Add the JRE of JDK 14 in Eclipse (Windows->Preferences->Installed JREs->Add)
- Set the compiler JDK compliance level to 14 (Windows->Preferences->Compiler->Compiler compliance level->Select 14)
- Enable the preview features (such as Record, Text blocks, Switch, Pattern matching) (Windows->Preferences->Compiler->Compiler compliance->Untick 'Use default compliance settings'->Tick 'Enable preview features for Java 14')
- Enjoy the Java 14 new features (preview): Record, Text blocks, Switch, Pattern matching