Eclipse and GraalVM: "The VM does not support the Graal API"

Mick Jordan mick.jordan at oracle.com
Wed Aug 6 17:20:44 UTC 2014


On 8/6/14, 10:15 AM, Juan Jose Fumero wrote:
> Hi everybody,
>     I am working with my OpenCL branch and this version of graal [1].
>
> If I execute my programs from the command line:
>
> $ ./mx.sh vm \
>        -Xmx6g \
>        -Xbootclasspath/p:graal.jar \
>        -XX:-BootstrapGraal \
>        -cp @com.edinburgh.parallel.functional \
>        com.edinburgh.parallel.functional.benchmarks.Saxpy
>
> Everything works, but  I execute the program in Eclipse, I get the
> following error. The same error with UnitTest.
>
> java.lang.UnsupportedOperationException: The VM does not support the
> Graal API.
> Currently used Java home directory
> is /home/juanjo/phd/graaljdk8ocl/jdk1.8.0_11/product/jre.
> Currently used VM configuration is: OpenJDK 64-Bit Graal VM
> 	at
> com.oracle.graal.api.runtime.Graal.getRequiredCapability(Graal.java:61)
> 	at
> com.edinburgh.parallel.opencl.functional.MapToGraal.getBackend(MapToGraal.java:48)
>
>
> The method getBackend contains the following:
>
> private static Backend getBackend() {
>          Backend hostBackend =
> Graal.getRequiredCapability(RuntimeProvider.class).getHostBackend();
>          return hostBackend;
>      }
>
>
> Any idea?
Upgrade to the latest rev (at a minimum) rev 74123ce7599b

Mick



More information about the graal-dev mailing list