Error - Cannot read JVMCI version from java.vm.version property

Doug Simon doug.simon at oracle.com
Tue Mar 7 09:48:13 UTC 2017


> On 7 Mar 2017, at 10:06, Deepali Patel <deepali_patel at persistent.com> wrote:
> 
> Hello,
> 
> I am using a Ubuntu 16.04.2 x86_64 system.
> 
> The java version is:
> openjdk version "1.8.0_121"
> OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13)
> OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
> 
> I used the steps in the section https://github.com/graalvm/graal-core#building-jvmci-jdk8 to build JVMCI JDK8. The build is successful, the last few lines of output is like:
>                make: Leaving directory '/pathto/Graal/graal-jvmci-8/make'
> Compiling jdk.vm.ci.hotspot.amd64 with javac-daemon... [dependency jdk.vm.ci.amd64 updated]
> Compiling jdk.vm.ci.hotspot.sparc with javac-daemon... [dependency jdk.vm.ci.sparc updated]
> Compiling jdk.vm.ci.hotspot.aarch64 with javac-daemon... [dependency jdk.vm.ci.aarch64 updated]
> Archiving JVMCI_TEST... [dependency jdk.vm.ci.runtime.test updated]
> Archiving JVM_PRODUCT_SERVER... [dependency hotspot updated]
> Archiving JVMCI_HOTSPOT... [dependency jdk.vm.ci.hotspot.aarch64 updated]
> 
> And I update JAVA_HOME using
> export JAVA_HOME=$(mx --java-home /usr/lib/jvm/java-8-openjdk-amd64 jdkhome)
> 
> echo $JAVA_HOME shows:
> /pathto/Graal/graal-jvmci-8/jdk1.8.0_121/product
> 
> Next I checkout graal-core and execute mx on it.
> 
> The error seen is:
> The VM does not support the minimum JVMCI API version required by Graal.
> Cannot read JVMCI version from java.vm.version property: 25.121-b13.
> Set the JVMCI_VERSION_CHECK environment variable to "ignore" to suppress this error or to "warn" to emit a warning and continue execution.
> Currently used Java home directory is /usr/lib/jvm/java-8-openjdk-amd64/jre.
> Currently used VM configuration is: OpenJDK 64-Bit Server VM
> Download the latest JVMCI JDK 8 from http://www.oracle.com/technetwork/oracle-labs/program-languages/downloads/index.html
> 
> Please suggest if I have missed out anything here. I do not want to download the built version of JVMCI because in parallel I am working on building it on PPC.

It seems like your $JAVA_HOME env var has a problem otherwise mx should be picking up /pathto/Graal/graal-jvmci-8/jdk1.8.0_121/product not /usr/lib/jvm/java-8-openjdk-amd64/jre. Do you really have a root directory on your system named "pathto"? You can use the --java-home option to mx instead of JAVA_HOME:

mx --java-home /pathto/Graal/graal-jvmci-8/jdk1.8.0_121/product ...

-Doug


More information about the graal-dev mailing list