2025-04-18 03:29:11 UTC
2.21 GB
C:\openjdk-25
JAVA_SHA25641f24482b5d173e5a8f242d81909835bd7e85fdb131b901bff9a150186c3c03c
JAVA_URLhttps://download.java.net/java/early_access/jdk25/18/GPL/openjdk-25-ea+18_windows-x64_bin.zip
JAVA_VERSION25-ea+18
[#000] sha256:803f4a9590cb9c635813cbd0ee89190f92d5fe4c7589711cf468879e42ce02ba - 72.46% (1.6 GB)
[#001] sha256:632102e3f287de7b6ffd6cab740fb7afe94ac8418060651b0954506aeecc48f1 - 18.75% (425 MB)
[#002] sha256:1dcf0e933af42f2adb64ec36fdeecef1b4437da625c2c42f08a84d8682d73029 - 0.0% (1.27 KB)
[#003] sha256:a7c166f5327e9b569c3c4803c406d6f8e536f45b2b1d08c0f003e93089e4bf3f - 0.01% (332 KB)
[#004] sha256:ddde71f727ab53698aa7bc94278b0480331c0f83b4c1d8085d1d227813a14e6a - 0.0% (1.27 KB)
[#005] sha256:6699fc8af9439e8bf0ec170d38deafff3650e6b04cccf573d73c79d87c55aa71 - 0.01% (313 KB)
[#006] sha256:cbcfc682ddff07b2f4b8bf8812f88e8de1ad82d445b4c2aac87f42dcced5f6ca - 0.0% (1.31 KB)
[#007] sha256:050614f3834cf49c91dd5ff30ffe5e8b993c4540626f829941f519ef3e58878b - 0.0% (1.26 KB)
[#008] sha256:5fd9fc57dbeec7e2d35b6bb5b0f31527de58b53f1ba0f65fda31c67e7605dd04 - 0.0% (1.34 KB)
[#009] sha256:fd33c2583f1e16bffa78eea019c1f0f0293ed523aefdf674146f0e2bae7e6494 - 8.76% (198 MB)
[#010] sha256:055ddf0167dd7ba0a3907d6b3c829c6b2657d09f54b5def2deb3ac0ed8f1e6f7 - 0.0% (1.26 KB)
Apply image 10.0.17763.6293
2025-04-15 01:47:49 UTCInstall update 10.0.17763.7249
2025-04-18 03:27:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2025-04-18 03:28:34 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-04-18 03:28:35 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-25
2025-04-18 03:28:42 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-04-18 03:28:43 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=25-ea+18
2025-04-18 03:28:44 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk25/18/GPL/openjdk-25-ea+18_windows-x64_bin.zip
2025-04-18 03:28:45 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=41f24482b5d173e5a8f242d81909835bd7e85fdb131b901bff9a150186c3c03c
2025-04-18 03:29:10 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-04-18 03:29:11 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.