Sidebar

What java and startup options are needed for Java 11 and 17

0 votes
2.1K views
asked Sep 1, 2023 by brandon-w-8204 (33,860 points)

1 Answer

+1 vote

For the Java 11 and 17 you will need to add the following to the startup tab in Qie Service Manager.

# These are needed for QIE to run
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED

answered Sep 1, 2023 by brandon-w-8204 (33,860 points)
commented Oct 5, 2023 by rich-c-2789 (17,490 points)
edited May 22 by brandon-w-8204
Add to Startup tab arguments in Qie Service Manager
# These are needed for QIE to run
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED

#This is needed for image processing or when using qie.convertDICOMPixelDataToJpeg
--add-opens=java.desktop/javax.imageio.stream=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
 
# This is needed to parse a raw x509Certificate (used in creating a SAML signature)
--add-opens=java.base/sun.security.x509=ALL-UNNAMED
 
# These are needed to generate a SAML signature
--add-opens=java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED
--add-opens=java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED
 
# This is needed to validate a SAML signature
--add-opens=java.xml.crypto/org.jcp.xml.dsig.internal.dom=ALL-UNNAMED
 
# This option is needed to output the base64 encoded certificate as a single line when generating the SAML signature
-Dorg.apache.xml.security.ignoreLineBreaks=true

#For Java 17 the following option if present must be removed.
-XX:MaxPermSize
...