-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 13 not working with GraalVM and -XX:+EnableJVMCI #1751
Comments
Graal.js is not included by default in Java 13 SE. |
@chumer I'm pulling GraalVM v19.2.0.1 jars via maven. Here's a simple example project to show what I am doing: https://github.com/nhartner/graalvm-java13-test Running
Switching to JDK 13, fails:
|
Running on OSX Mojave, my java version info is
|
@nhartner thanks for the detailed report! Looks like we have a bug here. Note that we don't officially support JDK 13. It seems like this bug is related to the default runtime when graal-truffle is not available. |
@chumer same result. The demo project you mentioned does not work on Java 13. I filed a bug on that project as well graalvm/graal-js-jdk11-maven-demo#28 |
This appears to be fixed as of version 19.3.0 |
Hi Team, I am still running into : "ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider com.oracle.truffle.js.scriptengine.GraalJSEngineFactory could not be instantiated" I am using jdk 11 , below is my code : import javax.script.; I tried both ways : 2: Also tried with the manually adding jars from the community edition : graalvm-ce-java11-darwin-amd64-20.2.0.tar.gz ( I am using on mac, unzipped it and added all required jars from it into my project in intellij ) For our application we want to use jars only with opensdk ( without using Maven or running from GraalVM that is not how we want to implement it ) and we want to ScriptEngine ( not polyglot api). Kindly let me know if this issue is resolved ? and if so what is the workaround for the error I am getting . Thanks |
Running latest Java 13 SE from https://www.oracle.com/technetwork/java/javase/downloads/index.html, attempting to run with VM args
-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI
causes calls toorg.graalvm.polyglot.Context.create("js")
to fail with the following error:This works fine with Java 11 and 12.
The text was updated successfully, but these errors were encountered: