graal-js-jdk11-maven-demo icon indicating copy to clipboard operation
graal-js-jdk11-maven-demo copied to clipboard

Would it be possible to create a version for JDK17?

Open Yaytay opened this issue 3 years ago • 2 comments

I thought I'd got my build working with JDK17 following your example (using Zulu on Windows), but when I run in GitHub Actions (Zulu on Ubuntu) Surefire bombs out with the message: Cannot use JVMCI compiler: No JVMCI compiler found. It is unclear what the implications of removing JVMCI are for polyglot programming on OpenJDK.

Yaytay avatar Apr 11 '22 06:04 Yaytay

Oh, actually I think I might have just resolved my issue. In the pom you have: --upgrade-module-path=${compiler.dir}/compiler.jar:${compiler.dir}/compiler-management.jar To work on Windows that needs a semicolon: --upgrade-module-path=${compiler.dir}/compiler.jar;${compiler.dir}/compiler-management.jar

The docs (https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html) are quite specific that is should be a semicolon, but that definitely doesn't work on Linux. Fortunately the docs also state that it's a list of directories, so this seems to work: --upgrade-module-path=${compiler.dir}

Yaytay avatar Apr 11 '22 06:04 Yaytay

I guess this has been adjusted in b690c6c370ef24a41e173f93b42ce0bcc3f7272c, now.

stanio avatar May 10 '23 12:05 stanio