Search code examples
javascriptjvmnashorn

Nashorn Javascript and ES6


Is there a standalone build of the Nashorn JS engine that supports ES6 (by standalone, I mean usable with Java 8 as opposed to having to use a Java 9 preview or something)?


Solution

  • Are you looking for nashorn binary generated from jdk9 openjdk source that is runnable on jdk 8u? No, that is not possible. The source won't even compile with jdk8u.