Graal: [native-image] Building on newer versions of Java

Created on 20 Jul 2018  路  4Comments  路  Source: oracle/graal

Building closure-compiler on MacOS was a bit involved. I first had to upgrade the JVM, then build graal-jvmci-8. When Java 10 support with jvmci is supported by native-image, this would be much less complicated.

Full build steps: https://github.com/ChadKillingsworth/closure-compiler-graal/blob/master/.travis.yml

feature native-image

Most helpful comment

We are actively working on support for Java 11.

All 4 comments

We are actively working on support for Java 11.

Great question, can I understand what it means to build graalvm suite with the following JDK:

  • JDK 9
  • JDK 10
  • JDK 11
  • JDK 12

Currently the binary I build is based ok JDK 8

I remember @gilles-duboscq mentioning there was some work done on building GraalVM using Java 9, SDK and it involved some work due to the modular system.

The Graal compiler itself, and the language implementations (JavaScript, Ruby, Python, ...) already work on JDK 11 (the latest preview versions). Support for JDK 9 and 10 is no longer possible, due to recent breaking changes, see http://mail.openjdk.java.net/pipermail/graal-dev/2018-July/005443.html

JDK 12 and future versions will be supported (but of course they do not exist yet).

Oops! Looks like GraamVM with JDK8 support and then JDK 11 onwards - I'll try to catch-up with this in the meanwhile

Was this page helpful?
0 / 5 - 0 ratings