Running Nashorn
Jim Laskey (Oracle)
james.laskey at oracle.com
Wed Aug 7 07:28:08 PDT 2013
All Macs have that (I use a Mac). I don't run into that problem though. So you are walking through the engines list?
On 2013-08-07, at 11:19 AM, Kasper Nielsen <kasperni at gmail.com> wrote:
> On Wed, Aug 7, 2013 at 2:13 PM, Jim Laskey (Oracle) <james.laskey at oracle.com> wrote:
> Kasper,
>
>
> - Check to see if you have other script engines installed that might trigger a GUI.
>
> Yup, it was this one.
>
> I'm on OSX and
> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/690161232823/src/macosx/classes/apple/applescript/AppleScriptEngineFactory.java
> has a call to java.awt.Toolkit.getDefaultToolkit(); in a static constructor.
>
> So no way to create a new ScriptEngineManager() without initializing AWT on OSX.
> Looks like a bug to me?
>
> - Kasper
>
More information about the nashorn-dev
mailing list