Open pranasblk opened 7 years ago
I've tried to set GRAALVM_DIR
environment variable to JDK/JRE location, but both cases failed:
build.sh
unable to locate troffle-api.jar
(it's in JRE)build.sh
unable to locate javac
in the JRE folder (it's not JDK ...)Would you mind considering fixing it?
Hi pranasblk,
we've recently updated the examples to work with the latest GraalVM. You can export env variable GRAALVM_DIR
pointing to GraalVM 0.28.2 location and then run ./build.sh
and run.sh
. For IDE development: set your JDK to GraalVM 0.28.2 and add reference to $GRAALVM_DIR/jre/lib/boot/graal-sdk.jar
so that the IDE can see the Graal SDK classes, but in reality you do not need to add that jar to your class path explicitly (as you can see in build.sh
and run.sh
).
hey there I am trying to run the examples with 0.29 I am getting the same error: Provider org.graalvm.compiler.truffle.hotspot.HotSpotTruffleRuntimeAccess not a subtype
. Any suggestions?
I downloded GraalVM from the OTN website and I running the following:
PolyglotEngine eng = PolyglotEngine.newBuilder().build();
Source s = Source.newBuilder("'YES'").mimeType("text/javascript").name("one.js").build();
PolyglotEngine.Value res = eng.eval(s);
My JAVA_HOME and GRAAL_DIR are set to the graalvm directory
never mind I was missing the -Xbootclasspath parameters in my IDE configurations!. Eg: -Xbootclasspath:[path_to_truffle_api]..
Dear GraalVM demo maintaners,
First of all I am happy about FastR initiative and seeing embed R in java code as future deliverable as open souce.
I did set-up the IntelliJ IDE with JDK - extract of graalvm-0.26 (root dir), added Global lib dependency graalvm-0.26/jre/lib/truffle/truffle-api.jar and source code of the fastr_javaui compiles.
But in the run-time getting service load exception: ServiceLoader.java:
private S nextService() { ... if (!service.isAssignableFrom(c)) { fail(service, "Provider " + cn + " not a subtype"); } ... }
Where service is interface com.oracle.truffle.api.TruffleRuntimeAccess and c is class org.graalvm.compiler.truffle.hotspot.HotSpotTruffleRuntimeAccess
Can you clarify how to set-up environment to have working project?
Thanks Pranas