question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native image build fails (JDK 11, windows-latest)

See original GitHub issue

Just noticed that the native image build fails since yesterday. Only JDK 11 / Windows seems to be affected.

Execution failed for task ':nativeImage'.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
> Couldn't find an installation of Windows SDK 7.1 suitable for GraalVM.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
edward3hcommented, Mar 1, 2022

Looks like the Palantir plugin checks for VS version 2019 or 2017 https://github.com/palantir/gradle-graal/blob/develop/src/main/java/com/palantir/gradle/graal/GraalExtension.java

(I basically never use Windows myself so my appetite for trying to work around this is low. I think that Graal native images are usually going to be used in Docker anyway.)

1reaction
edward3hcommented, Feb 28, 2022

windows-2019 passes.

So there’s an incompatibility with windows-2022, either with GraalVM itself or the Palantir Graal gradle plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Native image fails to build on Windows and misreads system ...
Native image fails to build on Windows and misreads system architecture. Building a native image from the same jar file works fine on...
Read more >
Use GitHub Actions to Build GraalVM Native Images
The main.yml workflow file configures GitHub Actions to check out your project, configure Node 16, configure Java 11, run your project's backend ...
Read more >
How to workaround "The command line is too long" with ...
Upgrading to native-build-tools v0.9.10 fixes this issue on Windows.
Read more >
Release Notes - GraalVM Enterprise Edition
Released experimental JDK 19 GraalVM builds including the Graal compiler, Native Image, and all GraalVM languages and tools except Espresso ...
Read more >
21.3.3 - GraalVM
Updated the OpenJDK release on which GraalVM Community Edition is built to: ... Java and Compiler Updates; Platform Updates; Native Image; Polyglot Runtime ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found