Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Java ScriptEngine supported languages

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
Oct 25, 2020 at 10:33 comment added Peter Verhas As of Java 15 the Nashorn engine is not part of the JDK anymore. With the deprecation of this engine, afaik there is no scripting engine included in the JDK. The engine SPI is supported, it is just the built-in sample implementation that is not there.
Aug 4, 2020 at 0:10 history edited Andrew Thompson CC BY-SA 4.0
added 128 characters in body
Aug 4, 2020 at 0:08 comment added Andrew Thompson @Pointy Thanks for the detail. It's a pity (IMO).
Aug 4, 2020 at 0:04 comment added Pointy I remember it was just a few years ago when Nashorn was such a big deal; I saw a presentation about the architecture at a Strange Loop conference. I guess they decided it was a waste of resources (by their accounting of value).
Aug 4, 2020 at 0:02 comment added Pointy Well I am the "canary" at work using JDK 11 (we're really conservative) and our build process uses some Nashorn-based JavaScript, and the runtime spits out "it's going away" messages. I think I read that they got very little feedback from people relying on JavaScript support and so it dropped out of the roadmap.
Aug 3, 2020 at 23:57 comment added Andrew Thompson @Pointy Huh.. I found this which suggests you're right, but it doesn't cover interesting things like .. Why? When? [Of interest to me, given some methods of classes were deprecated in Java 1.2, but are still in the API, whereas all the applet / webstart functionality was deprecated then removed within 2(?) API versions.] Will it be replaced with a different ECMAscript engine? Will/have other engines be/been supported? .. If you can track down further links, please share.
Aug 3, 2020 at 19:11 comment added Pointy Note that JavaScript support is deprecated and will go away with (I think) release 13 of the JDK/JVM.
Sep 14, 2016 at 10:41 comment added Simon Kissane On Mac OS X, you may also have AppleScript, depending on your OS and Java version. For whatever reason, in some cases you have to instantiate apple.applescript.AppleScriptEngineFactory directly and call the getScriptEngine() method, since javax.script.ScriptEngineManager.getEngineByName() doesn't always know about AppleScript
Dec 14, 2013 at 11:23 comment added McDowell Even the JavaScript version typically shipped in JREs is not required and you should have low expectations about compatibility across versions.
Nov 18, 2013 at 8:47 comment added user1241335 accepting the answer as the most straightforward one with all question answered. +1 on mentioning ECMAscript (I called it JS for simplicity and because Java calls it that (see docs.oracle.com/javase/7/docs/api/javax/script/… )
Nov 18, 2013 at 8:44 vote accept Community Bot
Nov 16, 2013 at 1:12 history answered Andrew Thompson CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /