Welcome to the Chocolatey Community Package Repository! The packages found in this section of the site are provided, maintained, and moderated by the community.
Moderation
Every version of each package undergoes a rigorous moderation process before it goes live that typically includes:
- Security, consistency, and quality checking
- Installation testing
- Virus checking through VirusTotal
- Human moderators who give final review and sign off
More detail at Security and Moderation.
Organizational Use
If you are an organization using Chocolatey, we want your experience to be fully reliable. Due to the nature of this publicly offered repository, reliability cannot be guaranteed. Packages offered here are subject to distribution rights, which means they may need to reach out further to the internet to the official locations to download files at runtime.
Fortunately, distribution rights do not apply for internal use. With any edition of Chocolatey (including the free open source edition), you can host your own packages and cache or internalize existing community packages.
Disclaimer
Your use of the packages on this site means you understand they are not supported or guaranteed in any way. Learn more...
Downloads:
17,716,982
Downloads of v 8.0.51:
52,132
Last Update:
22 Jul 2015
Package Maintainer(s):
Software Author(s):
- Oracle
Tags:
java runtime environment- Software Specific:
- Software Site
- Software License
- Package Specific:
- Possible Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Java SE Runtime Environment
This is not the latest version of Java SE Runtime Environment available.
- Software Specific:
- Software Site
- Software License
- Package Specific:
- Possible Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Downloads:
17,716,982
Downloads of v 8.0.51:
52,132
Maintainer(s):
Software Author(s):
- Oracle
Edit Package
To edit the metadata for a package, please upload an updated version of the package.
Chocolatey's Community Package Repository currently does not allow updating package metadata on the website. This helps ensure that the package itself (and the source used to build the package) remains the one true source of package metadata.
This does require that you increment the package version.
Java SE Runtime Environment 8.0.51
This is not the latest version of Java SE Runtime Environment available.
All Checks are Unknown
2 Test of Unknown Status
Validation Testing Unknown
Verification Testing Unknown
To install Java SE Runtime Environment, run the following command from the command line or from PowerShell:
To upgrade Java SE Runtime Environment, run the following command from the command line or from PowerShell:
To uninstall Java SE Runtime Environment, run the following command from the command line or from PowerShell:
NOTE: This applies to both open source and commercial editions of Chocolatey.
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment-
Open Source or Commercial:
- Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
- You can also just download the package and push it to a repository Download
-
Open Source
- Download the Package Download
- Follow manual internalization instructions
-
Package Internalizer (C4B)
- Run
choco download jre8 --internalize --version=8.0.51 --source=https://chocolatey.org/api/v2
(additional options) - Run
choco push --source="'http://internal/odata/repo'"
for package and dependencies - Automate package internalization
- Run
3. Enter your internal repository url
(this should look similar to https://chocolatey.org/api/v2)
4. Choose your deployment method:
choco upgrade jre8 -y --source="'STEP 3 URL'" [other options]
See options you can pass to upgrade.
See best practices for scripting.
Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.
If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:
choco upgrade jre8 -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Ensure jre8 installed
win_chocolatey:
name: jre8
state: present
version: 8.0.51
source: STEP 3 URL
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
Coming early 2020! Central Managment Reporting available now! More information...
chocolatey_package 'jre8' do
action :install
version '8.0.51'
source 'STEP 3 URL'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
Chocolatey::Ensure-Package
(
Name: jre8,
Version: 8.0.51,
Source: STEP 3 URL
);
Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.
cChocoPackageInstaller jre8
{
Name = 'jre8'
Ensure = 'Present'
Version = '8.0.51'
Source = 'STEP 3 URL'
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'jre8':
provider => 'chocolatey',
ensure => '8.0.51',
source => 'STEP 3 URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
salt '*' chocolatey.install jre8 version="8.0.51" source="STEP 3 URL"
See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.
5. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
This package was approved by moderator ferventcoder on 27 Jul 2015.
Java allows you to play online games, chat with people around the world, calculate your mortgage interest, and view images in 3D, just to name a few. It's also integral to the intranet applications and other e-business solutions that are the foundation of corporate computing.
Note
This package installs the Java version offered at https://www.java.com. It also sets SPONSORS=0
(see docs).
If you wish to install to an alternate directory, use the 32dir and/or the 64dir parameter. An example would be choco install jre8 -PackageParameters "/32dir:c:\path\to\install /64dir:c:\path\to\64" -y
This package installs both 32 and 64-bit versions on 64-bit systems.
try {
$arguments = @{}
# Now we can use the $env:chocolateyPackageParameters inside the Chocolatey package
$packageParameters = $env:chocolateyPackageParameters
# Default value
$32dir = $null
$64dir = $null
# Now parse the packageParameters using good old regular expression
if ($packageParameters) {
$match_pattern = "\/(?<option>([a-zA-Z0-9]+)):(?<value>([`"'])?([a-zA-Z0-9- \(\)\s_\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
$option_name = 'option'
$value_name = 'value'
if ($packageParameters -match $match_pattern ){
$results = $packageParameters | Select-String $match_pattern -AllMatches
$results.matches | % {
$arguments.Add(
$_.Groups[$option_name].Value.Trim(),
$_.Groups[$value_name].Value.Trim())
}
}
else
{
Throw "Package Parameters were found but were invalid (REGEX Failure)"
}
if ($arguments.ContainsKey("32dir")) {
Write-Host "32dir Argument Found"
$32dir = $arguments["32dir"]
$32dir = "INSTALLDIR=`"$32dir`""
}
if ($arguments.ContainsKey("64dir")) {
Write-Host "64dir Argument Found"
$64dir = $arguments["64dir"]
$64dir = "INSTALLDIR=`"$64dir`""
}
} else {
Write-Debug "No Package Parameters Passed in"
}
$scriptDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
# Import function to test if JRE in the same version is already installed
Import-Module (Join-Path $scriptDir 'thisJreInstalled.ps1')
Import-Module (Join-Path $scriptDir 'uninstall-oldJre.ps1')
$packageName = 'jre8'
# Find download URLs at http://www.java.com/en/download/manual.jsp
$url = 'http://javadl.sun.com/webapps/download/AutoDL?BundleId=107943'
$url64 = 'http://javadl.sun.com/webapps/download/AutoDL?BundleId=107944'
$oldVersion = '8.0.45'
$version = '8.0.51'
$homepath = $version -replace "(\d+\.\d+)\.(\d+)",'jre1.$1_$2'
$installerType = 'exe'
$installArgs = "/s REBOOT=Suppress SPONSORS=0 $32dir"
$installArgs64 = "/s REBOOT=Suppress SPONSORS=0 $64dir"
$osBitness = Get-ProcessorBits
# If both 32- and 64-bit versions are installed, it adds only the folder
# of the 64-bit version to the env variables
if ($osBitness -eq 64 -and $arguments["64dir"]) {
$javaHome = $arguments["64dir"]
}elseif ($osBitness -eq 32 -and $arguments["32dir"]) {
$javaHome = $arguments["32dir"]
}else{
$javaHome = Join-Path $env:ProgramFiles "Java\$homepath"
}
# Create variable for environment path
$jreForPathVariable = Join-Path $javaHome 'bin'
$thisJreInstalledHash = thisJreInstalled($version)
$oldJreInstalledHash = thisJreInstalled($oldVersion)
# This is the code for both javaruntime and javaruntime-platformspecific packages.
# If the package is javaruntime-platformspecific, only install the jre version
# based on the OS bitness, otherwise install both 32- and 64-bit versions
if ($packageName -match 'platformspecific') {
if ($thisJreInstalledHash.x86_32 -or $thisJreInstalledHash.x86_64) {
Write-Output "Java Runtime Environment $version is already installed. Skipping download and installation to avoid 1603 errors."
} else {
Install-ChocolateyPackage $packageName $installerType $installArgs $url $url64
}
} else {
# Otherwise it is the javaruntime package which installs both 32- and 64-bit jre versions on 64-bit systems
# Checks if JRE 32/64-bit in the same version is already installed,
# otherwise it downloads and installs it.
# This is to avoid unnecessary downloads and 1603 errors.
if ($thisJreInstalledHash.x86_32) {
Write-Output "Java Runtime Environment $version (32-bit) is already installed. Skipping download and installation"
} else {
Install-ChocolateyPackage $packageName $installerType $installArgs $url
}
# Only check for the 64-bit version if the system is 64-bit
if ($osBitness -eq 64) {
if ($thisJreInstalledHash.x86_64) {
Write-Output "Java Runtime Environment $version (64-bit) is already installed. Skipping download and installation"
} else {
# Here $url64 is used twice to obtain the correct message from Chocolatey
# that it installed the 64-bit version, otherwise it would display 32-bit,
# regardless of the actual bitness of the software.
Install-ChocolateyPackage $packageName $installerType $installArgs64 $url64 $url64
}
}
}
#Uninstalls the previous version of Java if either version exists
$32 = $oldJreInstalledHash.x86_32.IdentifyingNumber
$64 = $oldJreInstalledHash.x86_64.IdentifyingNumber
if(($oldJreInstalledHash.x86_32) -or ($oldJreInstalledHash.x86_64)){
uninstall-oldJre $oldVersion $32 $64
#echo "This would have been Tristans uninstall script"
}
# Only set the entry for the PATH variable and the JAVA_HOME env variable
# if the same version of JRE was not already installed (32- or 64-bit separately)
if (!($thisJreInstalledHash.x86_32) -or !($thisJreInstalledHash.x86_64)) {
Install-ChocolateyPath $jreForPathVariable 'Machine'
Start-ChocolateyProcessAsAdmin @"
[Environment]::SetEnvironmentVariable('JAVA_HOME', '$javaHome', 'Machine')
"@
}
} catch {
#Write-ChocolateyFailure $packageName $($_.Exception.Message)
throw
}
Write-Debug ("Starting " + $MyInvocation.MyCommand.Definition)
[string]$packageName="Javaruntime"
<#
Exit Codes:
0: Java installed successfully.
1605: Java is not installed.
3010: A reboot is required to finish the install.
#>
Start-ChocolateyProcessAsAdmin "/qn /norestart /X{26A24AE4-039D-4CA4-87B4-2F83218051F0}" -exeToRun "msiexec.exe" -validExitCodes @(0,1605,3010)
Start-ChocolateyProcessAsAdmin "/qn /norestart /X{26A24AE4-039D-4CA4-87B4-2F86418051F0}" -exeToRun "msiexec.exe" -validExitCodes @(0,1605,3010)
Write-Warning "$packageName may require a reboot to complete the uninstallation."
# This function checks if the same version of JRE is already installed on the computer.
# It returns a hash map with a 'x86_32' and 'x86_64'. These values are not empty if the
# same version and bitness of JRE is already installed.
function thisJreInstalled($version) {
$productSearch = Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -match '^Java \d+ Update \d+'}
# The regexes for the name of the JRE registry entries (32- and 64 bit versions)
$nameRegex32 = '^Java \d+ Update \d+$'
$nameRegex64 = '^Java \d+ Update \d+ \(64-bit\)$'
$versionRegex = $('^' + $version + '\d*$')
return @{
'x86_32' = $productSearch | Where-Object {$_.Name -match $nameRegex32 -and $_.Version -match $versionRegex}
'x86_64' = $productSearch | Where-Object {$_.Name -match $nameRegex64 -and $_.Version -match $versionRegex}
}
}
function uninstall-oldJre
{
Param
(
[string]$oldVersion,
[string]$32,
[string]$64
)
Write-Debug ("Starting the uninstallation of JRE version $oldVersion")
<#
Exit Codes:
0: Java installed successfully.
1605: Java is not installed.
3010: A reboot is required to finish the install.
#>
Write-Warning "Uninstalling JRE version $oldVersion"
Start-ChocolateyProcessAsAdmin "/qn /norestart /X$32" -exeToRun "msiexec.exe" -validExitCodes @(0,1605,3010)
Start-ChocolateyProcessAsAdmin "/qn /norestart /X$64" -exeToRun "msiexec.exe" -validExitCodes @(0,1605,3010)
Write-Warning "The computer may require a reboot to finish the uninstallation"
}
Log in or click on link to see number of positives.
- jre8.8.0.51.nupkg (c90618ab7ac0) - ## / 57
- jre-8u51-windows-i586.exe&BHost=javadl.sun.com&File=jre-8u51-windows-i586.exe&AuthParam=1462703572_4aa979c5a889cab815dabaf2003f9e1c&ext=.exe (59b134a5e245) - ## / 56
- jre-8u51-windows-x64.exe&BHost=javadl.sun.com&File=jre-8u51-windows-x64.exe&AuthParam=1462703580_e7e1a477c8c81a4879407c72bdcca721&ext=.exe (3895872bc4cd) - ## / 56
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.
Version | Downloads | Last Updated | Status |
---|---|---|---|
Java SE Runtime Environment 8.0.271 | 794149 | Friday, October 30, 2020 | Approved |
Java SE Runtime Environment 8.0.261 | 962730 | Wednesday, July 29, 2020 | Approved |
Java SE Runtime Environment 8.0.251 | 1014294 | Wednesday, April 29, 2020 | Approved |
Java SE Runtime Environment 8.0.241 | 1094752 | Tuesday, January 21, 2020 | Approved |
Java SE Runtime Environment 8.0.231 | 1160399 | Tuesday, October 29, 2019 | Approved |
Java SE Runtime Environment 8.0.221 | 1302223 | Friday, July 19, 2019 | Approved |
Java SE Runtime Environment 8.0.211 | 999873 | Thursday, April 25, 2019 | Approved |
Java SE Runtime Environment 8.0.201 | 1169490 | Wednesday, January 23, 2019 | Approved |
Java SE Runtime Environment 8.0.191.20181114 | 723762 | Wednesday, November 14, 2018 | Approved |
Java SE Runtime Environment 8.0.191 | 165977 | Saturday, November 10, 2018 | Approved |
Java SE Runtime Environment 8.0.181 | 1096106 | Wednesday, July 25, 2018 | Approved |
Java SE Runtime Environment 8.0.171 | 689605 | Monday, April 30, 2018 | Approved |
Java SE Runtime Environment 8.0.161 | 1284248 | Tuesday, January 23, 2018 | Approved |
Java SE Runtime Environment 8.0.151 | 1081800 | Friday, October 27, 2017 | Approved |
Java SE Runtime Environment 8.0.144 | 664741 | Friday, August 11, 2017 | Approved |
Java SE Runtime Environment 8.0.141 | 214766 | Thursday, July 20, 2017 | Approved |
Java SE Runtime Environment 8.0.131 | 654417 | Friday, April 28, 2017 | Approved |
Java SE Runtime Environment 8.0.121 | 541599 | Thursday, February 2, 2017 | Approved |
Java SE Runtime Environment 8.0.111 | 586485 | Saturday, November 5, 2016 | Approved |
Java SE Runtime Environment 8.0.101.20160917 | 374052 | Sunday, September 18, 2016 | Approved |
Java SE Runtime Environment 8.0.101 | 401766 | Friday, July 22, 2016 | Approved |
Java SE Runtime Environment 8.0.91 | 34534 | Friday, April 22, 2016 | Approved |
Java SE Runtime Environment 8.0.77 | 44645 | Saturday, March 26, 2016 | Approved |
Java SE Runtime Environment 8.0.73 | 58251 | Thursday, February 11, 2016 | Approved |
Java SE Runtime Environment 8.0.71 | 30785 | Thursday, January 21, 2016 | Approved |
Java SE Runtime Environment 8.0.66 | 56666 | Thursday, November 19, 2015 | Approved |
Java SE Runtime Environment 8.0.65 | 37464 | Sunday, October 25, 2015 | Approved |
Java SE Runtime Environment 8.0.60.20150902 | 52769 | Wednesday, September 2, 2015 | Approved |
Java SE Runtime Environment 8.0.51 | 52132 | Wednesday, July 22, 2015 | Approved |
Java SE Runtime Environment 8.0.45 | 308537 | Wednesday, April 22, 2015 | Approved |
Java SE Runtime Environment 8.0.40.20150402 | 609 | Tuesday, April 14, 2015 | Approved |
Java SE Runtime Environment 8.0.40.20150325 | 479 | Saturday, March 28, 2015 | Approved |
Java SE Runtime Environment 8.0.40 | 32154 | Tuesday, March 17, 2015 | Approved |
Java SE Runtime Environment 8.0.31 | 16708 | Thursday, January 22, 2015 | Approved |
Java SE Runtime Environment 8.0.25.03 | 6424 | Monday, November 10, 2014 | Approved |
Java SE Runtime Environment 8u25 8.0.25.02 | 2080 | Friday, October 24, 2014 | Approved |
Java SE Runtime Environment 8u25 8.0.25.01 | 663 | Thursday, October 23, 2014 | Approved |
Java SE Runtime Environment 8u25 8.0.25 | 1217 | Wednesday, October 15, 2014 | Approved |
Java SE Runtime Environment 8u20 8.0.20.01 | 799 | Sunday, September 7, 2014 | Approved |
Java SE Runtime Environment 8u20 8.0.20 | 2673 | Wednesday, September 3, 2014 | Approved |
This package has no dependencies.
Ground Rules:
- This discussion is only about Java SE Runtime Environment and the Java SE Runtime Environment 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 Java SE Runtime Environment, 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.