Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

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

Java SE Runtime Environment 8u25

8.0.25.02

There are no package test results for this package

This package was approved by moderator purity on 9/21/2015.

Java SE Runtime Environment 8.0.25.02

To install Java SE Runtime Environment 8u25, run the following command from the command line or from PowerShell:

C:\> choco install jre8 --version 8.0.25.02

To upgrade Java SE Runtime Environment 8u25, run the following command from the command line or from PowerShell:

C:\> choco upgrade jre8 --version 8.0.25.02

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $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 Show
    $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 Show
    $jre_version = '8u25' 
    $build = '18'
    $uninstall_id = "18025" 
    $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-WmiObject -Class Win32_ComputerSystem).SystemType -match ‘(x64)’
        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"
    
            [System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
            $client = New-Object Net.WebClient
            $dummy = $client.Headers.Add('Cookie', 'gpw_e24=http://www.oracle.com; oraclelicense=accept-securebackup-cookie')
            $dummy = $client.DownloadFile($url, $output_filename)
        }  
    }
    
    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"
        $url = "http://download.oracle.com/otn-pub/java/jdk/$jre_version-b$build/$filename"
        $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")
        }
    }

Virus Scan Results

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.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Sun Microsystems/Oracle Corporation

Tags

Version History

Version Downloads Last updated Status
Java SE Runtime Environment 8.0.161 1280542 Tuesday, January 23, 2018 approved
Java SE Runtime Environment 8.0.151 820252 Friday, October 27, 2017 approved
Java SE Runtime Environment 8.0.144 658447 Friday, August 11, 2017 approved
Java SE Runtime Environment 8.0.141 214369 Thursday, July 20, 2017 approved
Java SE Runtime Environment 8.0.131 653417 Friday, April 28, 2017 approved
Java SE Runtime Environment 8.0.121 529501 Thursday, February 2, 2017 approved
Java SE Runtime Environment 8.0.111 585436 Saturday, November 5, 2016 approved
Java SE Runtime Environment 8.0.101.20160917 371166 Sunday, September 18, 2016 approved
Java SE Runtime Environment 8.0.101 400636 Friday, July 22, 2016 approved
Show More

Discussion for the Java SE Runtime Environment 8u25 Package

Ground rules:

  • This discussion is only about Java SE Runtime Environment 8u25 and the Java SE Runtime Environment 8u25 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 8u25, 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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok