2025-05-05 17:36:30 UTC
3.36 GB
C:\openjdk-25
JAVA_SHA25650dc1f432a184e23ec8364a00fb4a5f8f791d3eed3a4d36226a041d7de9047e0
JAVA_URLhttps://download.java.net/java/early_access/jdk25/21/GPL/openjdk-25-ea+21_windows-x64_bin.zip
JAVA_VERSION25-ea+21
[#000] sha256:1317fe15185685e9cd27f7542cd96f4847343401288a8b6798273a4ac60844eb - 61.45% (2.06 GB)
[#001] sha256:86a55b9bd12cfb5d81d64963683e6d5d0ba9423233c85140eff135128a64f7ee - 32.73% (1.1 GB)
[#002] sha256:c9dc1da20dd7d9d66beced684a90f4859dade9e83ec2aac06a0cda2f32b90418 - 0.0% (1.27 KB)
[#003] sha256:385128f8e202473808c7de73ddbf3661a28dc9281ca8149c262b66aed6e68886 - 0.01% (382 KB)
[#004] sha256:480086c53bfc672e0ee5d52f9f3ff30bbac7761df23f90c90bb598ec3c089f9c - 0.0% (1.31 KB)
[#005] sha256:9460df07f40ad4c56d41deac5cd729ae9ba4a3b75b5e8ba6564d5800c68fa6b0 - 0.01% (366 KB)
[#006] sha256:920e99fd7087652f68664fcf6e5e6e03b0b8e080cb8174697bd6111f7b40593e - 0.0% (1.27 KB)
[#007] sha256:37c8169f4efe0081182d1906c41dc6f26ede7dceba957fa5324b0c6c16073e8f - 0.0% (1.28 KB)
[#008] sha256:6562b557d0f6ec04818ed22039d36a565b1df9bdfa6ee808936144715985aaab - 0.0% (1.29 KB)
[#009] sha256:41f25f2253c13feacc4b7a68d57791154e5a84c3e8ad367035a719df517e6bf5 - 5.8% (200 MB)
[#010] sha256:2d51423187e6601617dfc769b0100176125ff68016f435d4940528a8daead750 - 0.0% (1.26 KB)
Apply image 10.0.26100.2605
2025-04-15 10:03:37 UTCInstall update 10.0.26100.3781
2025-05-05 17:35:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2025-05-05 17:35:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Write-Host 'Enabling TLS 1.2 (https://githubengineering.com/crypto-removal-notice/) ...'; $tls12RegBase = 'HKLM:\\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2'; if (Test-Path $tls12RegBase) { throw ('"{0}" already exists!' -f $tls12RegBase) }; New-Item -Path ('{0}/Client' -f $tls12RegBase) -Force; New-Item -Path ('{0}/Server' -f $tls12RegBase) -Force; New-ItemProperty -Path ('{0}/Client' -f $tls12RegBase) -Name 'DisabledByDefault' -PropertyType DWORD -Value 0 -Force; New-ItemProperty -Path ('{0}/Client' -f $tls12RegBase) -Name 'Enabled' -PropertyType DWORD -Value 1 -Force; New-ItemProperty -Path ('{0}/Server' -f $tls12RegBase) -Name 'DisabledByDefault' -PropertyType DWORD -Value 0 -Force; New-ItemProperty -Path ('{0}/Server' -f $tls12RegBase) -Name 'Enabled' -PropertyType DWORD -Value 1 -Force; Write-Host 'Complete.'
2025-05-05 17:35:51 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-25
2025-05-05 17:36:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $newPath = ('{0}\bin;{1}' -f $env:JAVA_HOME, $env:PATH); Write-Host ('Updating PATH: {0}' -f $newPath); setx /M PATH $newPath; Write-Host 'Complete.'
2025-05-05 17:36:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=25-ea+21
2025-05-05 17:36:05 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk25/21/GPL/openjdk-25-ea+21_windows-x64_bin.zip
2025-05-05 17:36:07 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=50dc1f432a184e23ec8364a00fb4a5f8f791d3eed3a4d36226a041d7de9047e0
2025-05-05 17:36:28 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Write-Host ('Downloading {0} ...' -f $env:JAVA_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri $env:JAVA_URL -OutFile 'openjdk.zip'; Write-Host ('Verifying sha256 ({0}) ...' -f $env:JAVA_SHA256); if ((Get-FileHash openjdk.zip -Algorithm sha256).Hash -ne $env:JAVA_SHA256) { Write-Host 'FAILED!'; exit 1; }; Write-Host 'Expanding ...'; New-Item -ItemType Directory -Path C:\temp | Out-Null; Expand-Archive openjdk.zip -DestinationPath C:\temp; Move-Item -Path C:\temp\* -Destination $env:JAVA_HOME; Remove-Item C:\temp; Write-Host 'Removing ...'; Remove-Item openjdk.zip -Force; Write-Host 'Verifying install ...'; Write-Host ' javac --version'; javac --version; Write-Host ' java --version'; java --version; Write-Host 'Complete.'
2025-05-05 17:36:30 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) CMD ["jshell"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.