aspnetcore
aspnetcore copied to clipboard
JDK zip not found when running `.\eng\scripts\InstallJdk.ps1`
Trying to build all repos on my new machine by referring https://github.com/dotnet/aspnetcore/blob/main/docs/BuildFromSource.md. I found that I don't have JDK installed, so tried to install it with the script in the scripts folder, but getting the below error. Looks like the resource is not on the server.
Looks like we need to update this, or maybe if we can detect we are on windows (which we can I guess) we can use Winget to install JDK instead of relying on this. It will be simple and less error prone.
I think @adityamandaleeka may have looked at this recently?
This should be working now. The global.json was using "11", which is another way of saying "use latest version of 11", but it only works for some tooling. Now the global.json is "11.0.24" which should work with the installjdk script.
Edit: Nevermind, the script is still broken, it gets a little further though...
Edit edit: Now it should work.
Fixed by https://github.com/dotnet/aspnetcore/pull/58557. Feel free to re-open if you're still having issues