Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Windows SDK 7.1 incompatible with Windows 10 #399

Open
ThatBlockyPenguin opened this issue Nov 16, 2020 · 2 comments
Open

Windows SDK 7.1 incompatible with Windows 10 #399

ThatBlockyPenguin opened this issue Nov 16, 2020 · 2 comments

Comments

@ThatBlockyPenguin
Copy link

What happened?

When running :nativeImage, gradle-graal complains that it can't find Windows SDK 7.1. That doesn't surprise me, I'm running Windows 10. After chasing many blog threads on the internet and not being able to install WinSDK 7.1 (due to incompatibilities), I still cannot use gradle-graal on Windows 10.

Possible Fixes?

As it's now 2020, 5 years after Windows 10's release, could you update gradle-graal to use WinSDK 10? Or, if possible, add a configuration option for which SDK to use, if you want to keep support in place for Windows 7 machines.

Thanks!

@yschimke
Copy link

I've ended up with gradle build config like so to support Windows 10

https://github.com/square/okhttp/blob/master/okcurl/build.gradle#L57-L62

But it still fails if classpath is too long and similar problems.

@TeHMoroS
Copy link

When using Java 11 and VS Build Tools only (I could probably use VS Community, but I'm pretty happy with ma VSCode setup), you can "help" gradle-graal with locating the needed toolchain by supplying the variables mentioned in the config:

graal {
    javaVersion '11'

...

    // adjust as needed
    windowsVsVersion '2019'
    windowsVsEdition 'BuildTools'
}

Either that or, as Yuri mentioned above, the whole path.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants