dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.36k stars 9.99k forks source link

JDK zip not found when running `.\eng\scripts\InstallJdk.ps1` #58457

Open ShreyasJejurkar opened 3 days ago

ShreyasJejurkar commented 3 days ago

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.

Image

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.

amcasey commented 2 days ago

I think @adityamandaleeka may have looked at this recently?