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

This is not the latest version of Eclipse available.

Eclipse

4.7.2

Package test results are passing.

This package was approved as a trusted package on 12/20/2017.

Eclipse is famous for our Java Integrated Development Environment (IDE), but our C/C++ IDE and PHP IDE are pretty cool too. You can easily combine language support and other features into any of our default packages, and the Eclipse Marketplace allows for virtually unlimited customization and extension.

Eclipse IDE for Java EE Developers

Tools for Java developers creating Java EE and Web applications, including a Java IDE, tools for Java EE, JPA, JSF, Mylyn, EGit and others.

This package includes:

  • Data Tools Platform
  • Git integration for Eclipse
  • Eclipse Java Development Tools
  • Eclipse Java EE Developer Tools
  • JavaScript Development Tools
  • Maven Integration for Eclipse
  • Mylyn Task List
  • Eclipse Plug-in Development Environment
  • Remote System Explorer
  • Code Recommenders Tools for Java Developers
  • Eclipse XML Editors and Tools

Package Parameters

The following package parameters can be set:

  • /InstallationPath or /InstallLocation - Where to install the binaries to - defaults to "$Env:ProgramFiles\Eclipse Foundation\$packageVersion"
  • /Multi-User - Configure Eclipse as a multi-user install

These parameters can be passed to the installer with the use of --params.
For example: --params "'/InstallationPath=C:\path\to\installation /Multi-User'".

To install Eclipse, run the following command from the command line or from PowerShell:

C:\> choco install eclipse --version 4.7.2

To upgrade Eclipse, run the following command from the command line or from PowerShell:

C:\> choco upgrade eclipse --version 4.7.2

Files

Hide
  • tools\chocolateyBeforeModify.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
    . "$toolsDir\Uninstall-ChocolateyShortcut.ps1"
    
    $packageVersion = $Env:ChocolateyPackageVersion
    
    $shortcutName = "Eclipse $packageVersion.lnk"
    $shortcutPath = Join-Path $([Environment]::GetFolderPath([System.Environment+SpecialFolder]::CommonPrograms)) $shortcutName
    If (Test-Path $shortcutPath) {
      Uninstall-ChocolateyShortcut $shortcutPath -UnpinFromTaskbar
    }
    $shortcutPath = Join-Path $([Environment]::GetFolderPath([System.Environment+SpecialFolder]::CommonDesktopDirectory)) $shortcutName
    If (Test-Path $shortcutPath) {
      Uninstall-ChocolateyShortcut $shortcutPath
    }
    
    $logPath = Join-Path $Env:ChocolateyPackageFolder "eclipse.$packageVersion.txt"
    $installationPath = Get-Content $logPath
    Write-Verbose "Previous Installation Path: $installationPath"
    
    Remove-Item -Path $installationPath -ErrorAction SilentlyContinue -Recurse -Force
    
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
    . "$toolsDir\Get-PackageParameters.ps1"
    
    $packageVersion = $Env:ChocolateyPackageVersion
    $packageParameters = Get-PackageParameters
    
    If ($packageParameters.ContainsKey('InstallationPath')) {
      $installationPath = Join-Path $packageParameters.Item('InstallationPath') $packageVersion
    } ElseIf ($packageParameters.ContainsKey('InstallLocation')) {
      $installationPath = Join-Path $packageParameters.Item('InstallLocation') $packageVersion
    } Else {
      $forceX86 = If ($Env:ChocolateyForceX86) { Get-ProcessorBits 64 } Else { $false }
      $programFilesPath = If ($forceX86) { ${Env:ProgramFiles(x86)} } Else { $Env:ProgramFiles }
      $installationPath = Join-Path $programFilesPath "Eclipse $packageVersion"
    }
    Write-Verbose "Installation Path: $installationPath"
    
    $multiUser = $packageParameters.ContainsKey('Multi-User')
    
    # *** Automatically filled ***
    $packageArgs = @{
      packageName    = 'eclipse'
      url            = 'https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/2/eclipse-jee-oxygen-2-win32.zip&r=1'
      url64bit       = 'https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/2/eclipse-jee-oxygen-2-win32-x86_64.zip&r=1'
      unzipLocation  = $installationPath
      checksum       = '01188e8392cb2457759859a9079720c1ef8900ff286050642cbdc60cd09aae83'
      checksumType   = 'sha256'
      checksum64     = '9fa5405cd5f52760aff91479e70f283d805895ce1aede08af1697d1c26ed1066'
      checksumType64 = 'sha256'
    }
    # *** Automatically filled ***
    
    Install-ChocolateyZipPackage @packageArgs
    
    $logPath = Join-Path $Env:ChocolateyPackageFolder "eclipse.$packageVersion.txt"
    Set-Content $logPath $installationPath -Encoding UTF8 -Force
    
    $shortcutName = "Eclipse $packageVersion.lnk"
    $eclipsePath = Join-Path $installationPath 'eclipse\eclipse.exe'
    
    If ($multiUser) {
      $shortcutPath = Join-Path $([Environment]::GetFolderPath([System.Environment+SpecialFolder]::CommonDesktopDirectory)) $shortcutName
      $targetPath = Join-Path $installationPath 'eclipse.bat'
      $targetContent = @"
    @echo off
    
    set ECLIPSEDIR="%LOCALAPPDATA%\Eclipse.$packageVersion"
    
    if not exist %ECLIPSEDIR% (
      mkdir %ECLIPSEDIR%
    )
    
    start "Eclipse" "$eclipsePath" -configuration %ECLIPSEDIR%
    
    "@
      Set-Content $targetPath $targetContent -Encoding Ascii -Force
      Install-ChocolateyShortcut -ShortcutFilePath $shortcutPath -TargetPath $targetPath -IconLocation $eclipsePath
    } Else {
      $shortcutPath = Join-Path $([Environment]::GetFolderPath([System.Environment+SpecialFolder]::CommonPrograms)) $shortcutName
      Install-ChocolateyShortcut -ShortcutFilePath $shortcutPath -TargetPath $eclipsePath -PinToTaskbar
    }
    
  • tools\chocolateyUninstall.ps1 Show
    # Nothing to do here because uninstall is actually done by chocolateyBeforeModify.ps1 in order to handle upgrade properly.
    
  • tools\Get-PackageParameters.ps1 Show
    <#
    .SYNOPSIS
        Parses parameters of the package
    
    .EXAMPLE
        Get-PackageParameters "/Shortcut /InstallDir='C:\Program Files\xyz' /NoStartup" | set r
        if ($r.Shortcut) {... }
        Write-Host $r.InstallDir
    
    .OUTPUTS
        [HashTable]
    #>
    function Get-PackageParameters {
        [CmdletBinding()]
        param(
           [string] $Parameters = $Env:ChocolateyPackageParameters,
           # Allows splatting with arguments that do not apply and future expansion. Do not use directly.
           [parameter(ValueFromRemainingArguments = $true)]
           [Object[]] $IgnoredArguments
        )
    
        $res = @{}
    
        $re = "\/([a-zA-Z0-9]+)(=[`"'].+?[`"']|[^ ]+)?"
        $results = $Parameters | Select-String $re -AllMatches | select -Expand Matches
        foreach ($m in $results) {
            if (!$m) { continue } # must because of posh 2.0 bug: https://github.com/chocolatey/chocolatey-coreteampackages/issues/465
    
            $a = $m.Value -split '='
            $opt = $a[0].Substring(1); $val = $a[1..100] -join '='
            if ($val -match '^(".+")|(''.+'')$') {$val = $val -replace '^.|.$'}
            $res[ $opt ] = if ($val) { $val } else { $true }
        }
        $res
    }
    
  • tools\Uninstall-ChocolateyShortcut.ps1 Show
    function Uninstall-ChocolateyShortcut {
    <#
    .SYNOPSIS
    Remove a shortcut
    .DESCRIPTION
    This deletes a shortcut, at the specified location.
    .NOTES
    If this errors, as it may if being run under the local SYSTEM account with
    particular folder that SYSTEM doesn't have, it will display a warning instead
    of failing a package installation.
    .INPUTS
    None
    .OUTPUTS
    None
    .PARAMETER ShortcutFilePath
    The full absolute path to where the shortcut is.
    .PARAMETER UnpinFromTaskbar
    OPTIONAL - Unpin the shortcut from the taskbar.
    .PARAMETER IgnoredArguments
    Allows splatting with arguments that do not apply. Do not use directly.
    .EXAMPLE
    >
    # This will remove a shortcut at the location of "C:\test.lnk"
    Uninstall-ChocolateyShortcut -ShortcutFilePath "C:\test.lnk"
    .EXAMPLE
    >
    # Removes a notepad shortcut on the root of C:.
    # Shortcut is also unpinned from taskbar.
    Uninstall-ChocolateyShortcut `
      -ShortcutFilePath "C:\notepad.lnk" `
      -UnpinFromTaskbar
    #>
      param(
        [parameter(Mandatory=$true, Position=0)][string] $shortcutFilePath,
        [parameter(Mandatory=$false)][switch] $UnpinFromTaskbar,
        [parameter(ValueFromRemainingArguments = $true)][Object[]] $ignoredArguments
      )
    
      Write-FunctionCallLogMessage -Invocation $MyInvocation -Parameters $PSBoundParameters
    
      if (!$shortcutFilePath) {
        # shortcut file path could be null if someone is trying to get special
        # paths for LocalSystem (SYSTEM).
        Write-Warning "Unable to remove shortcut. `$shortcutFilePath can not be null."
        return
      }
    
      try {
        if ($UnpinFromTaskbar) {
          if (Test-Path $shortcutFilePath) {$pinverb = (New-Object -com "shell.application").namespace($(split-path -parent $shortcutFilePath)).Parsename($(split-path -leaf $shortcutFilePath)).verbs() | ?{$_.Name -eq 'Unpin from tas&kbar'}}
          if ($pinverb) {$pinverb.doit()}
        }
    
        Write-Debug "Removing Shortcut..."
        Remove-Item -Path "$shortcutFilePath" -ErrorAction SilentlyContinue -Force
        Write-Debug "Shortcut removed."
      }
      catch {
        Write-Warning "Unable to remove shortcut. Error captured was $($_.Exception.Message)."
      }
    }

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

    • jdk8 (≥ 8.0.131)

Package Maintainer(s)

Software Author(s)

  • Eclipse Foundation

Copyright

Copyright © Eclipse Foundation

Tags

Release Notes

Announcements

Version History

Version Downloads Last updated Status
Eclipse 4.7.3.1 13 Thursday, July 26, 2018 approved
Eclipse 4.7.3 5608 Wednesday, March 21, 2018 approved
Eclipse 4.7.2 5370 Wednesday, December 20, 2017 approved
Eclipse 4.7.1.20171220 322 Wednesday, December 20, 2017 approved
Eclipse 4.7.1.20171009 4851 Saturday, October 21, 2017 approved
Eclipse 4.7.1 1904 Thursday, September 28, 2017 approved
Eclipse 4.7 7161 Saturday, July 15, 2017 approved
Show More

Discussion for the Eclipse Package

Ground rules:

  • This discussion is only about Eclipse and the Eclipse 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 Eclipse, 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