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

Nashorn jjs doesn't take extra arguments when in Shell Scripting

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Other
    • Affects Version/s: 8, 8u25, 8u31
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None
    • Environment:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux_ubuntu

      Description

      When running a Nashorn shell script, Nashorn complains about invalid arguments.

      The following alternatives did NOT work:
      - #!/usr/bin/jjs -scripting -fx
      - #!/usr/bin/jjs -fx -scripting
      - #!/usr/bin/jjs -cp some.jar -scripting
      - #!/usr/bin/jjs --scripting cp some.jar

      The output is always something like:
        "-scripting -strict -fx" is not a recognized option. Use "-h" or "-help" to see a list of all supported options.

        Attachments

          Activity

            People

            • Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              bborges Bruno Borges (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: