You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to update project that previously worked just fine on GraalVM for JDK 17. On the older version, you install JS via gu install js and then ScriptEngine just works. Nice and simple. On the newer versions, not so much. gu is now removed and not supported, so how do I install JS into GraalVM? I'm using Maven, and I've tried adding all these dependencies to my pom.xml as described:
I then set my JDK to GraalVM 23 (GraalJS 24.1.0 said to use GraalVM 23) in IntelliJ and build with clean package. On my Linux server, I install the same GraalVM version into /usr/lib/jvm/graalvm. Then I run my JAR using JAVA_HOME=/usr/lib/jvm/graalvm /usr/lib/jvm/graalvm/bin/java -jar <name>
I'm trying to update project that previously worked just fine on GraalVM for JDK 17. On the older version, you install JS via
gu install js
and then ScriptEngine just works. Nice and simple. On the newer versions, not so much.gu
is now removed and not supported, so how do I install JS into GraalVM? I'm using Maven, and I've tried adding all these dependencies to my pom.xml as described:I then set my JDK to GraalVM 23 (GraalJS 24.1.0 said to use GraalVM 23) in IntelliJ and build with
clean package
. On my Linux server, I install the same GraalVM version into/usr/lib/jvm/graalvm
. Then I run my JAR usingJAVA_HOME=/usr/lib/jvm/graalvm /usr/lib/jvm/graalvm/bin/java -jar <name>
Important part of the code:
Problem is, engine is always null. Again, running the same code on the previous version with
gu install js
, this all works.The text was updated successfully, but these errors were encountered: