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

Trailing space in JDK_JAVA_OPTIONS causes an application fail to launch

XMLWordPrintable

    • b171
    • Verified

        $ 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

              henryjen Henry Jen
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: