Comment Comment by nathankleyn Sadly Nashorn, the JS engine that was built into the JVM, has been deprecated as of Java 11: https://openjdk.java.net/jeps/335It had so many compatibility issues with real JS that it was kind of untenable to use it with scripts designed for other JS environments: https://jaxenter.com/nashorn-javascript-engine-deprecated-14...The only real way to deal with JS now is Rhino (which still exists!), or some custom binding to V8 or something via JNI (yikes).Our work uses Nashorn a lot for scripting and this is a big blocker for us to move to newer Java versions. parent nathankleyn 7 years ago
It had so many compatibility issues with real JS that it was kind of untenable to use it with scripts designed for other JS environments: https://jaxenter.com/nashorn-javascript-engine-deprecated-14...
The only real way to deal with JS now is Rhino (which still exists!), or some custom binding to V8 or something via JNI (yikes).
Our work uses Nashorn a lot for scripting and this is a big blocker for us to move to newer Java versions.