I have complex SQL queries to write and i want to take advantage of Java 14 preview feature “text block”.
I have properly configured MyEclipse to use Java 14 using the –enable-preview parameter.
I have also added the –enable-preview parameter in Java Windows setting, and done what is recommended here: https://dev.dexterxx.pl/news/8
When I code my Java classes in MyEclipse, it’s fine, I can use text blocks.
However, when I build and run the application on Tomcat 9, I have the following error message:
java.lang.UnsupportedClassVersionError: Preview features are not enabled for com/knowledgeplaces/metalmsapi/SigninResource (class file version 58.65535). Try running with ‘–enable-preview’ (impossible de charger la classe [com.knowledgeplaces.metalmsapi.SigninResource])
Sounds like the feature is not enabled in the complied class file.
You have to be odd to be #1 - Seuss. An odd little ad: