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

Main class should be set for nashorn modules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • b136
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: