Downloads:

12,396,575

Downloads of v 8.0.31:

16,595

Last Update:

1/22/2015

Package Maintainer(s):

Software Author(s):

  • Sun Microsystems/Oracle Corporation

Tags:

java jre

Java SE Runtime Environment

This is not the latest version of Java SE Runtime Environment available.

8.0.31 | Updated: 1/22/2015

Downloads:

12,396,575

Downloads of v 8.0.31:

16,595

Software Author(s):

  • Sun Microsystems/Oracle Corporation

Tags:

java jre

Java SE Runtime Environment 8.0.31

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

  • 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

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.31
    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.31'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: jre8,
    Version: 8.0.31,
    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.31'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'jre8':
  provider => 'chocolatey',
  ensure   => '8.0.31',
  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.31" 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 purity on 1/25/2015.

Description

By default this package installs JRE according to your platform (x86 or x64).

If you want to install 32bits JRE on 64bits OS

choco install jre8 -params "x64=false"

or

choco install jre8 -params "i586=true"

if you install by

choco install jre8 -params "both=true"

then

Both 32bits and 64bits JRE will be installed and 64bits will be defaults.


tools\chocolateyInstall.ps1
$script_path = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$common = $(Join-Path $script_path "common.ps1")
. $common

#installs jre8
try {
    $params = "$env:chocolateyPackageParameters" # -params '"x64=false;path=c:\\java\\jre"'
    $params = (ConvertFrom-StringData $params.Replace(";", "`n")) 
    
    if (check-both($params)) {
        chocolatey-install $true
        chocolatey-install
        out-both($params)
    } else {
        out-i586($params)
        chocolatey-install
    }  
} catch {
    if ($_.Exception.InnerException) {
        $msg = $_.Exception.InnerException.Message
    } else {
        $msg = $_.Exception.Message
    }
    
    Write-ChocolateyFailure 'jre8' "$msg"
    throw 
}  
tools\chocolateyUninstall.ps1
$script_path = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$common = $(Join-Path $script_path "common.ps1")
. $common


function Uninstall-JRE {
    if (Test-Path (Join-Path $script_path "both.txt")) {
        $jre = "/qn /x {26A24AE4-039D-4CA4-87B4-2F864" + $uninstall_id + "F0}"
        Start-ChocolateyProcessAsAdmin $jre 'msiexec'
        $jre = "/qn /x {26A24AE4-039D-4CA4-87B4-2F832" + $uninstall_id + "F0}"
        Start-ChocolateyProcessAsAdmin $jre 'msiexec'
    } else {
        $use64bit = use64bit
        if ($use64bit) {
            $jre = "/qn /x {26A24AE4-039D-4CA4-87B4-2F864" + $uninstall_id + "F0}"   
        } else {
            $jre = "/qn /x {26A24AE4-039D-4CA4-87B4-2F832" + $uninstall_id + "F0}"   
        }
        Start-ChocolateyProcessAsAdmin $jre 'msiexec'
    }
}
try {  
    Uninstall-JRE
} catch {
    # ingore exception
} finally {
    Write-ChocolateySuccess 'jre8'
}
tools\common.ps1
$jre_version = '8u31' 
$uninstall_id = "18031" 
$script_path = $(Split-Path -parent $MyInvocation.MyCommand.Definition)

function use64bit($Forcei586 = $false) {
    if ($Forcei586) {
        return $false
    }
    if (Test-Path (Join-Path $script_path "i586.txt")) {
        return $false
    }
    $is64bitOS = Get-ProcessorBits 64
    return $is64bitOS
}

function has_file($filename) {
    return Test-Path $filename
}

function download-from-oracle($url, $output_filename) {
    if (-not (has_file($output_fileName))) {
        Write-Host  "Downloading jre from $url"

        Get-ChocolateyWebFile 'jre8' $output_fileName $url $url
    }  
}

function download-jre-file($url, $output_filename) {
    $dummy = download-from-oracle $url $output_filename
}

function download-jre($Forcei586 = $false) {
    $arch = get-arch $Forcei586
    $filename = "jre-$jre_version-windows-$arch.exe"
    if ($arch -eq "x64") {
       $bundleId = "101408"
    } else {
       $bundleId = "101406"
    }
    $url = "http://javadl.sun.com/webapps/download/AutoDL?BundleId=$bundleId"
    $output_filename = Join-Path $script_path $filename

    $dummy = download-jre-file $url $output_filename

    return $output_filename
}


function get-arch($Forcei586 = $false) {
    if((use64bit $Forcei586)) {
        return "x64"
    } else {
        return "i586"
    }
}

function chocolatey-install($Forcei586 = $false) {
    $jre_file = download-jre $Forcei586
    $arch = get-arch $Forcei586

    Write-Host "Installing jre $jre_version($arch) to $java_home"
    Install-ChocolateyInstallPackage 'jre8' 'exe' "/s" $jre_file          

    Write-ChocolateySuccess 'jre8'
}

function out-i586($params) {
    if ($params.i586 -eq $true -or $params.x64 -eq $false) {
        Out-File (Join-Path $script_path "i586.txt")
    }
}

function check-both($params) {
    return ($params.both -eq $true) -and (use64bit) 
}

function out-both($params) {
    if (check-both($params)) {
            Out-File (Join-Path $script_path "both.txt")
    }
}

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.211 993364 Thursday, April 25, 2019 Approved
Java SE Runtime Environment 8.0.201 1166080 Wednesday, January 23, 2019 Approved
Java SE Runtime Environment 8.0.191.20181114 722801 Wednesday, November 14, 2018 Approved
Java SE Runtime Environment 8.0.191 164951 Saturday, November 10, 2018 Approved
Java SE Runtime Environment 8.0.181 1095011 Wednesday, July 25, 2018 Approved
Java SE Runtime Environment 8.0.171 688242 Monday, April 30, 2018 Approved
Java SE Runtime Environment 8.0.161 1283765 Tuesday, January 23, 2018 Approved
Java SE Runtime Environment 8.0.151 889390 Friday, October 27, 2017 Approved
Java SE Runtime Environment 8.0.144 659927 Friday, August 11, 2017 Approved

This package has no dependencies.

Discussion for the Java SE Runtime Environment Package

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.
comments powered by Disqus