22nd Apr 2022, 3:23 AM
Placebo
Placebo - avatar
5 Answers
+ 3
Nashorn was removed from Java in version 1.15.2 and no longer supported. SoloLearn is on 1.16.
22nd Apr 2022, 5:17 AM
John Wells
John Wells - avatar
+ 2
John Wells , Thanks for the answer. Do you know any alternative way to use Javascript in Java?
22nd Apr 2022, 5:32 AM
Placebo
Placebo - avatar
+ 2
No guarantees in will work in SoloLearn but other companies provide them. https://golb.hplar.ch/2020/04/java-javascript-engine.html
22nd Apr 2022, 5:57 AM
John Wells
John Wells - avatar
+ 2
User42 check out GraalVM, it is cutting edge virtual machine, and has a great polyglot story supporting Java, JS, C++, Python and Ruby as well. Will not work on Sololearn though. https://www.graalvm.org/javascript/ Quote from this page: "GraalVM supports all Nashorn features, improves performance, and includes all the latest ECMAScript features"
23rd Apr 2022, 3:30 PM
Tibor Santa
Tibor Santa - avatar