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

Trailing space in JDK_JAVA_OPTIONS causes an application fail to launch

    Details

    • Subcomponent:
    • Resolved In Build:
      b171
    • Verification:
      Verified

      Backports

        Description

        $ export JDK_JAVA_OPTIONS="--add-exports java.base/jdk.internal.misc=ALL-UNNAMED "

        $ java Hi
        NOTE: Picked up the following options via JDK_JAVA_OPTIONS:
          --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
        Error: Cannot specify main class in environment variable JDK_JAVA_OPTIONS

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  henryjen Henry Jen
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: