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. I came across this question, and in an attempt to fix this issue, as suggested in this comment, I’m trying to use the Standalone Nashorn with Java 11, by using org.openjdk.nashorn.api.scripting.NashornScriptEngineFactory in my code
Tag: nashorn
how can I re-instantiate a class instanced by javascript (Nashorn Engine)
so, i instantiate a new class in javascript, and then add it to a list … Later I go through the list and instantiate all the classes again, to work with them. the Javascript: and later in Java: Exeption: This code works for all classes except the Javascript classes. The Javascript works fine (loading and executing the single instance), but
Nashorn alternative for Java 11 [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 2 years ago. The community reviewed whether to reopen this question last year and left it closed: