Downloads of v


Last Update:

06 Sep 2014

Package Maintainer(s):

Software Author(s):

  • Oracle


java runtime environment

Java Runtime (JRE)

This is not the latest version of Java Runtime (JRE) available. | Updated: 06 Sep 2014



Downloads of v


Software Author(s):

  • Oracle

Java Runtime (JRE)

This is not the latest version of Java Runtime (JRE) available.

All Checks are Unknown

2 Test of Unknown Status

Validation Testing Unknown

Verification Testing Unknown

To install Java Runtime (JRE), run the following command from the command line or from PowerShell:


To upgrade Java Runtime (JRE), run the following command from the command line or from PowerShell:


To uninstall Java Runtime (JRE), 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

  • 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 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

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade javaruntime -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 javaruntime -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure javaruntime installed
    name: javaruntime
    state: present
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'javaruntime' do
  action    :install
  version  ''
  source   'STEP 3 URL'

See docs at

    Name: javaruntime,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller javaruntime
   Name     = 'javaruntime'
   Ensure   = 'Present'
   Version  = ''
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'javaruntime':
  provider => 'chocolatey',
  ensure   => '',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install javaruntime version="" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 24 Nov 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.


This package installs the Java version offered at (currently Java 7). If you want Java 8, install the jre8 package instead.

This package installs both 32 and 64-bit versions on 64-bit systems. If you only want the version specific to your OS bitness, install javaruntime-platformspecific instead.

try {

  $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')

  $packageName = 'javaruntime'
  # Find download URLs at
  $url = ''
  $url64 = ''
  $version = '7.0.67'
  $versionMajor = $version -replace '^(\d+)\..*', '$1'
  $installerType = 'exe'
  $installArgs = '/s REBOOT=Suppress'

  # If both 32- and 64-bit versions are installed, it adds only the folder
  # of the 64-bit version to the env variables
  $javaHome = Join-Path $env:ProgramFiles "Java\jre$versionMajor"
  $jreForPathVariable = Join-Path $javaHome 'bin'

  $thisJreInstalledHash = thisJreInstalled($version)
  $osBitness = Get-ProcessorBits

  # 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 $installArgs $url64 $url64

  # 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)
# 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}

Log in or click on link to see number of positives.

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 Runtime (JRE) 8.0.191 500841 Saturday, November 10, 2018 Approved
Java Runtime (JRE) 8.0.181 95147 Thursday, October 4, 2018 Approved
Java Runtime (JRE) 8.0.151 467444 Monday, October 30, 2017 Approved
Java Runtime (JRE) 8.0.144 213166 Friday, August 11, 2017 Approved
Java Runtime (JRE) 8.0.121 451962 Friday, February 17, 2017 Approved
Java Runtime (JRE) 8.0.101 631623 Sunday, September 18, 2016 Approved
Java Runtime (JRE) 8.0.73 180681 Monday, March 21, 2016 Approved
Java Runtime (JRE) 8.0.66 42256 Friday, January 8, 2016 Approved
Java Runtime (JRE) 8.0.60 27855 Sunday, October 25, 2015 Approved

This package has no dependencies.

Discussion for the Java Runtime (JRE) Package

Ground Rules:

  • This discussion is only about Java Runtime (JRE) and the Java Runtime (JRE) 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 Runtime (JRE), 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.
comments powered by Disqus