About 6,670,000 results
Open links in new tab
  1. How to use Nashorn in Java 15 and later? - Stack Overflow

    Nashorn is deprecated in Java 15 and later; explore alternatives or use standalone Nashorn for compatibility.

  2. How Can we use Nashorn with Java 17? - Stack Overflow

    Oct 7, 2022 · It should be pretty much a drop-in replacement so everything written in Nashorn User's Guide within Oracle Java 14 documentation (with examples) should be a good place to …

  3. java 8 - Switching from Rhino to Nashorn - Stack Overflow

    One problem is that Nashorn can no longer by default import whole Java packages into the global scope by using importPackage(com.organization.project.package); There is, however, a …

  4. java - Secure Nashorn JS Execution - Stack Overflow

    Dec 27, 2013 · The best way to secure a JS execution in Nashorn is to enable the SecurityManager and let Nashorn deny the critical operations. In addition you can create a …

  5. javascript - JMeter Warning: Nashorn engine is planned to be …

    Oct 16, 2019 · Warning: Nashorn engine is planned to be removed from a future JDK release I've used web search and found JEP 335: Deprecate the Nashorn JavaScript Engine. Motivation …

  6. java - How can I start coding with Oracle's Nashorn JS Engine and …

    Nov 17, 2012 · I'm looking for a way to start playing around with Oracle's new Nashorn JavaScript Engine. I've DL'd the latest OpenJDK 8 (b65) and it appears that Rhino is still the only included …

  7. Does Nashorn (org.openjdk.nashorn) have any support for Java 17?

    Jun 24, 2021 · Yes, OpenJDK Nashorn supports Java 17 starting with version 15.3. It had to be adapted to gracefully handle the fact defineAnonymousClass method was removed from the …

  8. javascript - How do I solve Nashorn removal and JS replacement in ...

    Jul 8, 2024 · OK, so mvnrepository points to OpenJDK Nashorn » 15.4 followed by 5 lines of xml code. Does one have to do something with this code, and if so, what does one have to do?

  9. maven - Standalone Nashorn with Java 11 throws java.lang ...

    Jun 16, 2022 · I came across an issue with Nashorn, when evaluating a large expression, it works fine in Java 8 , but throws a java.lang.StackOverflowError in Java 11. Exception in ...

  10. java 8 - Try to run a JavaScript file with Nashorn, failing due to ...

    Jul 2, 2023 · I need to add a new feature to my Java-8-based application (can't upgrade Java) where it takes an encoded string and decodes it to a JSON. The issue is that that decoding …