Downloads:
12
Downloads of v 21.0.4:
12
Last Update:
01 Dec 2024
Published Date:
01 Dec 2024
Reviewed Date:
12 Dec 2024
Reviewer:
Package Maintainer(s):
Software Author(s):
- Oracle
Tags:
oracle jdk java jvm jdk21Oracle JDK 21
(Waiting for Maintainer to take corrective action)
- 1
- 2
- 3
21.0.4 | Updated: 01 Dec 2024
Downloads:
12
Downloads of v 21.0.4:
12
Published:
01 Dec 2024
Reviewed:
12 Dec 2024
Reviewer:
Maintainer(s):
Software Author(s):
- Oracle
Oracle JDK 21 21.0.4
(Waiting for Maintainer to take corrective action)
Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Oracle. The inclusion of Oracle trademark(s), if any, upon this webpage is solely to identify Oracle goods or services and not for commercial purposes.
- 1
- 2
- 3
Some Checks Have Failed or Are Not Yet Complete
Not All Tests Have Passed
This version is in moderation and has not yet been approved. This means it doesn't show up under normal search.
- Until approved, you should consider this package version unsafe - it could do very bad things to your system (it probably doesn't but you have been warned, that's why we have moderation).
- This package version can change wildly over the course of moderation until it is approved. If you install it and it later has changes to this version, you will be out of sync with any changes that have been made to the package. Until approved, you should consider that this package version doesn't even exist.
- You cannot install this package under normal scenarios. See How to install package version under moderation for more information.
- There are also no guarantees that it will be approved.
There are versions of this package awaiting moderation (possibly just this one). See the Version History section below.
Oracle JDK is a distribution of OpenJDK provided by Oracle. This package automates the download and installation of Oracle JDK 21 from Oracle's official website.
# Get ProductCode (GUID) of Oracle JDK 21
$jdkProductCode = (Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -like "Java SE Development Kit 21*" }).IdentifyingNumber
if ($jdkProductCode) {
# Uninstall JDK
Write-Host "Uninstalling Oracle JDK 21..."
Start-Process -FilePath "msiexec.exe" -ArgumentList "/x $jdkProductCode /quiet /norestart" -Wait
Write-Host "Oracle JDK 21 uninstalled successfully."
} else {
Write-Warning "Oracle JDK 21 not found. Skipping uninstallation."
}
# Remove JAVA_HOME environment variable
Write-Host "Removing JAVA_HOME environment variable..."
[System.Environment]::SetEnvironmentVariable("JAVA_HOME", $null, [System.EnvironmentVariableTarget]::Machine)
# Remove JAVA_HOME\bin from PATH
Write-Host "Updating PATH environment variable to remove JAVA_HOME\bin..."
$path = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::Machine)
if ($path -match ";C:\\Program Files\\Java\\jdk-21\\bin") {
$newPath = $path -replace ";C:\\Program Files\\Java\\jdk-21\\bin", ""
[System.Environment]::SetEnvironmentVariable("Path", $newPath, [System.EnvironmentVariableTarget]::Machine)
Write-Host "PATH environment variable updated."
} else {
Write-Warning "JAVA_HOME\bin not found in PATH. Skipping update."
}
Write-Host "Uninstallation script completed."
Log in or click on link to see number of positives.
- oracle-jdk21.21.0.4.nupkg (0dba6b2bc62f) - ## / 67
In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).
Chocolatey Pro provides runtime protection from possible malware.
This package has no dependencies.
Ground Rules:
- This discussion is only about Oracle JDK 21 and the Oracle JDK 21 package. If you have feedback for Chocolatey, please contact the Google Group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or Oracle JDK 21, or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
adrianogba (maintainer) on 29 Nov 2024 05:52:38 +00:00:
User 'adrianogba' (maintainer) submitted package.
chocolatey-ops (reviewer) on 29 Nov 2024 06:24:57 +00:00:
oracle-jdk21 has failed automated validation.
Requirements
Requirements represent the minimum quality of a package that is acceptable. When a package version has failed requirements, the package version requires fixing and/or response by the maintainer. Provided a Requirement has flagged correctly, it must be fixed before the package version can be approved. The exact same version should be uploaded during moderation review.
Guidelines
Guidelines are strong suggestions that improve the quality of a package version. These are considered something to fix for next time to increase the quality of the package. Over time Guidelines can become Requirements. A package version can be approved without addressing Guideline comments but will reduce the quality of the package.
Suggestions
Suggestions are either newly introduced items that will later become Guidelines or items that are don't carry enough weight to become a Guideline. Either way they should be considered. A package version can be approved without addressing Suggestion comments.
Notes
Notes typically flag things for both you and the reviewer to go over. Sometimes this is the use of things that may or may not be necessary given the constraints of what you are trying to do and/or are harder for automation to flag for other reasons. Items found in Notes might be Requirements depending on the context. A package version can be approved without addressing Note comments.
adrianogba (maintainer) on 01 Dec 2024 16:54:26 +00:00:
User 'adrianogba' (maintainer) submitted package.
chocolatey-ops (reviewer) on 01 Dec 2024 17:29:15 +00:00:
oracle-jdk21 has passed automated validation. It may have or may still fail other checks like testing (verification).
NOTE: No required changes that the validator checks have been flagged! It is appreciated if you fix other items, but only Requirements will hold up a package version from approval. A human review could still turn up issues a computer may not easily find.
Guidelines
Guidelines are strong suggestions that improve the quality of a package version. These are considered something to fix for next time to increase the quality of the package. Over time Guidelines can become Requirements. A package version can be approved without addressing Guideline comments but will reduce the quality of the package.
Suggestions
Suggestions are either newly introduced items that will later become Guidelines or items that are don't carry enough weight to become a Guideline. Either way they should be considered. A package version can be approved without addressing Suggestion comments.
Notes
Notes typically flag things for both you and the reviewer to go over. Sometimes this is the use of things that may or may not be necessary given the constraints of what you are trying to do and/or are harder for automation to flag for other reasons. Items found in Notes might be Requirements depending on the context. A package version can be approved without addressing Note comments.
chocolatey-ops (reviewer) on 01 Dec 2024 17:46:20 +00:00:
oracle-jdk21 has passed automated package testing (verification). The next step in the process is package scanning.
Please visit https://gist.github.com/choco-bot/e68a16b47cd9bd2488c48b48f2f1fd3b for details.
This is an FYI only. There is no action you need to take.
chocolatey-ops (reviewer) on 01 Dec 2024 17:58:57 +00:00:
oracle-jdk21 has passed automated virus scanning, however requires human verification.
Package Scan Status Type was ScannerExempted.
Package downloads file(s) with text content!
Check the virus scan results for additional information.
The package scanner had problems with the following files:
jdk-21.0.4_windows-x64_bin.msi
: File is text. Contents:C:\tools\scanner\filesToScan\oracle-jdk21\21.0.4\x64\jdk-21.0.4_windows-x64_bin.msi has content type text/plain
flcdrg (reviewer) on 12 Dec 2024 11:09:36 +00:00:
Have you tried letting Chocolatey do the uninstall of the JDK msi? I note that other JDK packages don't seem to need call msiexec to do uninstall.
https://community.chocolatey.org/packages/oracle17jdk
https://community.chocolatey.org/packages/jdk20
david