RFR 8165595: Main class should be set for nashorn modules
Alan Bateman
Alan.Bateman at oracle.com
Wed Sep 7 12:38:02 UTC 2016
On 07/09/2016 13:27, Sundararajan Athijegannathan wrote:
> jjs does not yet support module related options. So, user modules can
> not be scripted directly with jjs as of now. Only way is to use to
> launcher with -mp along with -m for jjs main class. With the change,
> only module name needs to be specified.
>
> Also, jjs tool is not shipped for embedded platforms (compact1). But,
> jdk.nashorn.tools.Shell (used to be the jjs main in jdk8u) is compact1
> compliant. So user can use
>
> java -m jdk.scripting.nashorn
>
> on embedded platforms [and use functionality reduced jjs there]
>
> Yes, I tried to see if I can get it per-module config from somewhere -
> but couldn't. I'm open to suggestions on how to do that in the current
> scheme.
Is there an issue tracking the update to `jjs`?
Also I think you should wait to hear from Erik as to where to put this
in the build. The concern with CreateJMods.gmk is that isn't not going
to scale once we eventually get to sorting out the issues with modules
that have entry points.
-Alan
More information about the nashorn-dev
mailing list