Running Nashorn
Kasper Nielsen
kasperni at gmail.com
Wed Aug 7 07:19:48 PDT 2013
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