Skip to content

pbelathur/setup-jde-using-chocolatey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Java Developer Environment using Chocolatey

What is Chocolatey ?

Chocolatey is a package manager for Windows similar to Homebrew on the MacOS, with features to install, configure, upgrade and uninstall Windows applications. Chocolatey works with all the existing Windows software installation technologies, runtime binaries and zip archives. It supports unattended and scripted package management with automatic configuration.

I will be using Chocolatey scripts to create a typical Java Developer Environment on a Windows machine.
These scripts can be used to setup, update or teardown the Java developer environments on a Windows machine.

Steps

  1. Install Chocolatey
    open a command window using the Run As Administrator option and, execute setup-chocolatey.cmd.

  2. Verify the installation is successful by typing choco in the command window.
    setup script start

  3. Run setup-jde.cmd in the same command window to install the runtime (OpenJDK 11), build tools (maven, gradle), SCM (git) and utilities (putty, curl, postman, IntelliJ community edition) on the developer's Windows computer.

    contents of thesetup-jde.cmd

    choco feature enable -n allowGlobalConfirmation
    
    choco install -y openjdk maven gradle git atom putty curl postman  db-visualizer 7zip intellijidea-community
    

    Script execution start setup-jde-1

    Script execution complete setup-jde-2

  4. Verify the installed applications of the Java Developer Environment.

Notes

  1. Chocolatey Installation Details

  2. C:\ProgramData\chocolatey contains the choco.exe.

  3. Command syntax: choco <operation> <application-name>

    • operation is install or uninstall or upgrade
    • application-name is obtained from https://chocolatey.org/packages
  4. https://chocolatey.org/packages contains the details of the applications that can be installed using choco install

  5. uninstall-jde.cmd is used to teardown the Java Developer Environment.

  6. Installation log: C:\ProgramData\chocolatey\logs\chocolatey.log

About

Setup Java Developer Environment using Chocolatey

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published