-1

This question is outdated and only works in Java8. Is there any alternatives?

DavidNyan10
  • 100
  • 8
  • What makes you say that - see [Rhino Release Notes](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md) Rhino 1.7.8 January 22, 2018 Most important changes in this release: JavaScript objects are no longer (somewhat) thread-safe by default Rhino is resistant to "hash flooding" attacks Rhino is only supported for Java 8 and up Rhino only builds with Gradle. – Mr R May 05 '22 at 08:34
  • The Rhino readme has instructions for Java 16 and later, so I agree with Mr R: what makes you think that thread is outdated? – Federico klez Culloca May 05 '22 at 08:41
  • Also, the same answer suggesting Rhino also suggests using [Nashorn](https://github.com/openjdk/nashorn) which is very much still usable. – Federico klez Culloca May 05 '22 at 08:43
  • @MrR Can I use Rhino embed in code? I tried running and it gave me ` is null`, which when I googled said Nashorn and Rhino are depreciated. – DavidNyan10 May 05 '22 at 09:03
  • There was a release back in Jan that added Promise support - so I'd suggest having a look at their embedding test cases to see what they do. – Mr R May 05 '22 at 20:30

0 Answers0