-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
The Jira AWS CloudFormation templates do not allow for selecting Java 11 during deployment and updates.
Using Java 11 with the CF templates requires heavy customization, as some Java flags added to setenv.sh are no longer supported by Java 11, causing the JVM to fail to start up.
Here's an example:
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED Unrecognized VM option 'PrintAdaptiveSizePolicy' Did you mean '(+/-)UseAdaptiveSizePolicy'? Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.