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

Main class should be set for nashorn modules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b136
    • CPU:
      generic
    • OS:
      generic

      Description

      Nashorn modules jdk.scripting.nashorn, jdk.scripting.nashorn.shell should be set with "main class".

      Apart from being a convenience to run nashorn modules, this main class setting is needed because nashorn does not yet directly support user created modules (modular jars or directories for example). jjs tool does not have --module-path/-mp option. Only non-modular user classes and platform modules can be scripted with jjs -classpath/-cp option.

      User can run java launcher with "-m jdk.scripting.nashorn.shell" and other options like --module-path/-mp option and script user-defined modules.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: