Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8098169

Add lib/ext/jfxrt.jar to java.policy file

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:

      Backports

        Description

        The default security policy for jar files in lib/ext is changing in JDK 9 to not grant all permisisons by default. See https://bugs.openjdk.java.net/browse/JDK-8040059 for more details.

        In order for the JavaFX runtime to continue to run when a security manager is present, we will need to add the following to the java.policy file in the JRE at build time:

        grant codeBase "file:${java.home}/lib/ext/jfxrt.jar" {
                permission java.security.AllPermission;
        };

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kcr Kevin Rushforth
                Reporter:
                kcr Kevin Rushforth
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported: