aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

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

Open ShreyasJejurkar opened this issue 1 year ago • 1 comments

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.

ShreyasJejurkar avatar Oct 16 '24 15:10 ShreyasJejurkar

I think @adityamandaleeka may have looked at this recently?

amcasey avatar Oct 17 '24 16:10 amcasey

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.

BrennanConroy avatar Oct 21 '24 20:10 BrennanConroy

Fixed by https://github.com/dotnet/aspnetcore/pull/58557. Feel free to re-open if you're still having issues

wtgodbe avatar Oct 22 '24 18:10 wtgodbe