Downloads:
161,131
Downloads of v 7.0.72:
1,513
Last Update:
24 Feb 2015
Package Maintainer(s):
Software Author(s):
- Oracle
Tags:
java jdk jre debugger- 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 Platform (JDK)
- 1
- 2
- 3
7.0.72 | Updated: 24 Feb 2015
- 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:
161,131
Downloads of v 7.0.72:
1,513
Maintainer(s):
Software Author(s):
- Oracle
Java Platform (JDK) 7.0.72
- 1
- 2
- 3
Some Checks Have Failed or Are Not Yet Complete
Not All Tests Have Passed
Validation Testing Unknown
Verification Testing Unknown
Scan Testing Successful:
No detections found in any package files
This package was approved by moderator ferventcoder on 18 Mar 2015.
This package is unlisted and hidden from package listings.
Java Development Kit. Includes a complete JRE plus tools for developing, debugging, and monitoring Java applications.
http://www.oracle.com/technetwork/java/javase/downloads/index.html
$script_path = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$common = $(Join-Path $script_path "common.ps1")
. $common
function Uninstall-ChocolateyPath {
param(
[string] $pathToUninstall,
[System.EnvironmentVariableTarget] $pathType = [System.EnvironmentVariableTarget]::User
)
Write-Debug "Running 'Uninstall-ChocolateyPath' with pathToUninstall:`'$pathToUninstall`'";
#get the PATH variable
$envPath = $env:PATH
if ($envPath.ToLower().Contains($pathToUninstall.ToLower()))
{
Write-Host "PATH environment variable has $pathToUninstall in it. Removing..."
$actualPath = [Environment]::GetEnvironmentVariable('Path', $pathType)
$statementTerminator = ";"
# remove $pathToUninstall
$actualPath = (($actualPath -split $statementTerminator) -ne $pathToUninstall) -join $statementTerminator
if ($pathType -eq [System.EnvironmentVariableTarget]::Machine) {
$psArgs = "[Environment]::SetEnvironmentVariable('Path',`'$actualPath`', `'$pathType`')"
Start-ChocolateyProcessAsAdmin "$psArgs"
} else {
[Environment]::SetEnvironmentVariable('Path', $actualPath, $pathType)
}
#add it to the local path as well so users will be off and running
$env:Path = $actualPath
}
}
function Uninstall-JDK-And-JRE {
$use64bit = use64bit
if ($use64bit) {
# /qn
# HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{64A3A4F4-B792-11D6-A78A-00B0D0170720}
$jdk = " /qn /x {64A3A4F4-B792-11D6-A78A-00B0D0" + $uninstall_id + "0}"
# HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F06417072FF}
$jre = " /qn /x {26A24AE4-039D-4CA4-87B4-2F064" + $uninstall_id + "FF}"
} else {
$jdk = " /qn /x {32A3A4F4-B792-11D6-A78A-00B0D0" + $uninstall_id + "0}"
$jre = " /qn /x {26A24AE4-039D-4CA4-87B4-2F832" + $uninstall_id + "FF}"
}
Write-Host "Uninstalling JDK"
Start-ChocolateyProcessAsAdmin $jdk 'msiexec'
Write-Host "Completed Uninstalling JDK"
Write-Host "Uninstalling JRE"
Start-ChocolateyProcessAsAdmin $jre 'msiexec'
Write-Host "Completed Uninstalling JRE"
}
try {
Uninstall-JDK-And-JRE
$java_bin = get-java-bin
Uninstall-ChocolateyPath $java_bin 'Machine'
if ([Environment]::GetEnvironmentVariable('CLASSPATH','Machine') -eq '.;') {
Write-Host "Uninstalled Machine Environment Variable 'CLASSPATH'"
Install-ChocolateyEnvironmentVariable 'CLASSPATH' $null 'Machine'
}
Write-Host "Made Machine Environment Variable 'JAVA_HOME' blank"
Install-ChocolateyEnvironmentVariable 'JAVA_HOME' $null 'Machine'
Write-ChocolateySuccess 'jdk7'
} catch {
Write-ChocolateyFailure 'jdk7' "$($_.Exception.Message)"
#throw
}
$package = 'jdk7'
$build = '14'
$jdk_version = '7u72'
$java_version = "1.7.0_72"
$uninstall_id = "17072"
$script_path = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$customArgs = $env:chocolateyInstallArguments
$env:chocolateyInstallArguments = ""
function use64bit() {
$is64bitOS = (Get-WmiObject -Class Win32_ComputerSystem).SystemType -match '(x64)'
return $is64bitOS
}
function has_file($filename) {
return Test-Path $filename
}
function get-programfilesdir() {
$use64bit = use64bit
$programFiles = (Get-Item "Env:ProgramFiles").Value
return $programFiles
}
function checkIfInstalled()
{
$jdkPath = "HKLM:\SOFTWARE\JavaSoft\Java Development Kit"
if (Test-Path -Path $jdkPath)
{
$installedJdkVersion = dir $jdkPath | select -expa pschildname -Last 1
Write-Debug "Installed JDK Version: $installedJdkVersion"
$isInstalled = $installedJdkVersion -eq $java_version
Write-Debug "Jdk IsInstalled: $isInstalled"
return $isinstalled
}
Write-Debug "Jdk Is Not Installed"
return $false
}
function download-from-oracle($url, $output_filename) {
if (-not (has_file($output_fileName))) {
Write-Host "Downloading JDK from $url"
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
$client = New-Object Net.WebClient
$client.Proxy = [System.Net.WebRequest]::DefaultWebProxy
$dummy = $client.Headers.Add('Cookie', 'gpw_e24=http://www.oracle.com; oraclelicense=accept-securebackup-cookie')
$dummy = $client.DownloadFile($url, $output_filename)
Write-Host "Completed Downloading JDK from $url"
}
}
function download-jdk-file($url, $output_filename) {
$dummy = download-from-oracle $url $output_filename
}
function download-jdk() {
$arch = get-arch
$filename = "jdk-$jdk_version-windows-$arch.exe"
$url = "http://download.oracle.com/otn-pub/java/jdk/$jdk_version-b$build/$filename"
$output_filename = Join-Path $script_path $filename
$dummy = download-jdk-file $url $output_filename
return $output_filename
}
function get-java-home() {
$program_files = get-programfilesdir
return Join-Path $program_files "Java\jdk$java_version" #jdk1.6.0_17
}
function get-java-bin() {
$java_home = get-java-home
return Join-Path $java_home 'bin'
}
function get-arch() {
if(use64bit) {
return "x64"
} else {
return "i586"
}
}
function chocolatey-install() {
if (checkIfInstalled)
{
Write-Host "JDK $java_version already installed."
Write-ChocolateySuccess $package
return
}
$jdk_file = download-jdk
$arch = get-arch
$java_home = get-java-home
$java_bin = get-java-bin
Write-Host "Installing JDK $jdk_version($arch) to $java_home"
Install-ChocolateyInstallPackage $package 'exe' "/s" $jdk_file
Install-ChocolateyPath $java_bin 'Machine'
if ([Environment]::GetEnvironmentVariable('CLASSPATH','Machine') -eq $null) {
Install-ChocolateyEnvironmentVariable 'CLASSPATH' '.;' 'Machine'
}
Install-ChocolateyEnvironmentVariable 'JAVA_HOME' $java_home 'Machine'
Write-ChocolateySuccess $package
}
Log in or click on link to see number of positives.
- jdk7.7.0.72.nupkg (5b7c7cd8ec5c) - ## / 57
- jdk-7u72-windows-x64.exe (4a8910dc2bc3) - ## / 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.
This package has no dependencies.
Ground Rules:
- This discussion is only about Java Platform (JDK) and the Java Platform (JDK) 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 Platform (JDK), 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.