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

Doug Simon doug.simon at oracle.com
Wed Aug 6 18:35:09 UTC 2014


As of http://hg.openjdk.java.net/graal/graal/rev/c9284d733aa1, all classes in graal.jar (and graal-truffle.jar) are now (by default) isolated from application classes. This is part of efforts to secure Graal.

To revert to the old behavior, specify -XX:-UseGraalClassLoader on the command.

-Doug

On Aug 6, 2014, at 7:39 PM, Juan Jose Fumero <juan.fumero at ed.ac.uk> wrote:

> If I upgrade to the lastest version I get the same error, but in the
> terminal.
> 
> java.lang.UnsupportedOperationException: The VM does not support the
> Graal API.
> Currently used Java home directory
> is /tmp/graalWed-Aug--6/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)
> 	at
> com.edinburgh.parallel.opencl.functional.MapToGraal.getCompiledLambda(MapToGraal.java:96)
> 	at
> com.edinburgh.parallel.opencl.functional.MapToGraal.createKernel(MapToGraal.java:166)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:483)
> 	at
> com.edinburgh.parallel.functional.ComposablePatternMap.patternApplyOcl(ComposablePatternMap.java:309)
> 
> 
> What could it be? 
> 
> 
> Juanjo
> 
> 
> On Wed, 2014-08-06 at 10:20 -0700, Mick Jordan wrote:
> 
>> 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
>> 
>> 
> 
> 
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.



More information about the sumatra-dev mailing list