Using Java 9 or greater
As documented in the Mirth Connect System Requirements, Mirth® Connect version 3.7 supports Java 8 at minimum. In order to use Java 9 or greater, you will first need to perform an extra manual step.
In the Installation Directory, there should be a docs folder. Inside, there is a file called mcservice-java9+.vmoptions. This contains some extra JVM options that allow Mirth® Connect to run with Java 9 or greater without errors or warnings.
Copy the contents into either the mcserver.vmoptions or mcservice.vmoptions file, depending on whether your deployment uses mcserver or mcservice. Then restart Mirth® Connect.