The Mendix runtime needs Java 11, so you won’t be able to use Java 19 for your custom code.
If you want to write custom Java actions for your Mendix application, there is a useful section in the documentation describing how to do this. If you are using Eclipse, remember to point it to JDK 11 else you’ll end up with errors.
https://docs.mendix.com/howto/logic-business-rules/extending-your-application-with-custom-java/
Good luck!
Hi Cyril,
You can find the JDK requirements in the docs, here: System Requirements | Mendix Documentation
Generally, working outside these recommendations can cause headaches.
Hope it helps!