2024-11-15 23:12:09 UTC
2.3 GB
C:\openjdk-24
JAVA_SHA256403403eb4a5860551cdfc63a2395f87cf7526bf93e5437ea5fd17168572fd51a
JAVA_URLhttps://download.java.net/java/early_access/jdk24/24/GPL/openjdk-24-ea+24_windows-x64_bin.zip
JAVA_VERSION24-ea+24
[#000] sha256:2534953f34d35976fc44cd67bfdd39fdcd9e2eaae57ada0be53d5fb936cd3a0b - 59.17% (1.36 GB)
[#001] sha256:5987a3191d90ca1e07fd03dae1963abcaa49ceabc649ec3bc43f2c96b55d0464 - 31.98% (754 MB)
[#002] sha256:55a50bfc4a6c23d4423657c38fd801af499a6f07385aac6bc4de89349efd74a5 - 0.0% (1.26 KB)
[#003] sha256:a8685fed0880fa63804a38da03e6726d5b87af3470b1000e3850658442ab163e - 0.01% (353 KB)
[#004] sha256:a7c9f9952eb61cfe35b6ae63510d1a3eec4a1d973df226f2c33bee7ab7092757 - 0.0% (1.25 KB)
[#005] sha256:d3fe30b86acfebbf39c2a385395a465e1e1d746e47d944d371d26ec4c30c7106 - 0.01% (338 KB)
[#006] sha256:682f1a38d4f3e90d9ac6c98b9c0dad114fb26e7c2d7a885e98ef022e082454a3 - 0.0% (1.25 KB)
[#007] sha256:b1abf23c2a71e46129f71f9a9664a231f487fb970025a12ccecb5ba4b0430c64 - 0.0% (1.25 KB)
[#008] sha256:fa2e87fc0af2adb498a0fbc6ee6bb959c19304a8024a288a8cd66d770cb570cb - 0.0% (1.25 KB)
[#009] sha256:cb30d1730e4e5ca26d22cd14fb78e8e03b9a19aee06c79f3b0bf84da0626ae87 - 8.82% (208 MB)
[#010] sha256:b233d0f611de1e1f888f8bfed8ae55ea1615011ee9f38e58cdcd6a370fdf1b94 - 0.0% (1.25 KB)
Apply image 10.0.20348.2700
2024-11-02 23:52:43 UTCInstall update 10.0.20348.2849
2024-11-15 23:11:31 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2024-11-15 23:11:41 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.'
2024-11-15 23:11:42 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_HOME=C:\openjdk-24
2024-11-15 23:11:47 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.'
2024-11-15 23:11:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_VERSION=24-ea+24
2024-11-15 23:11:48 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_URL=https://download.java.net/java/early_access/jdk24/24/GPL/openjdk-24-ea+24_windows-x64_bin.zip
2024-11-15 23:11:49 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV JAVA_SHA256=403403eb4a5860551cdfc63a2395f87cf7526bf93e5437ea5fd17168572fd51a
2024-11-15 23:12:08 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.'
2024-11-15 23:12:09 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.