Filed as JDK-8022555 [macosx] AppleScriptEngine.jar MUST call java.awt.Toolkit.getDefaultToolkit() lazily
On 2013-08-07, at 2:21 PM, "Jim Laskey (Oracle)" <[email protected]> wrote: > I'm filing a bug against AppleScriptEngine.jar. Other than removing it, > there is no long term fix. BTW, if you do need AppleScript you can do it > from Nashorn; > https://blogs.oracle.com/nashorn/entry/playing_itunes_from_nashorn . > > Cheers, > > -- Jim > > > > > On 2013-08-07, at 12:26 PM, Kasper Nielsen <[email protected]> wrote: > >> My code is pretty simple: >> >> import javax.script.ScriptEngineManager; >> >> public class EngineTest { >> public static void main(String[] args) throws Exception { >> new ScriptEngineManager(); >> Thread.sleep(100000); >> } >> } >>> Javac EngineTest.java >>> Java EngineTest >> -> A window pops up. >> >> AppleScriptEngine.jar installed in /System/Library/Java/Extensions seems to >> be the culprit. >> If I remove it I do no window pops up. (/System/Library/Java/Extensions is >> on the default extension path) >> >> I'm pretty sure AppleScriptEngine.jar comes whenever you install Apples Java >> distribution. >> It is dated "3 Sep 2011 AppleScriptEngine.jar" >> >> - Kasper >> >> >> >> >> >> On Wed, Aug 7, 2013 at 4:28 PM, Jim Laskey (Oracle) >> <[email protected]> wrote: >> All Macs have that (I use a Mac). I don't run into that problem though. So >> you are walking through the engines list? >> >> >
