Skip to content

A PowerShell script which downloads & installs Java from the OpenJDK site, and configures necessary environment variables.

License

Notifications You must be signed in to change notification settings

Valkryst/Install_Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

This repository contains a PowerShell script which downloads & installs Java from the OpenJDK site, and configures necessary environment variables.

Requirements

To use this script, you must be running PowerShell on a 64-bit version of windows.

Usage

Download the PowerShell script and then run it either by double-clicking the file or by right-clicking and selecting "Run with PowerShell".

It may take some time to run. Depending on the speed of your computer and internet connection.

When the script completes, and if there are no error messages, you can open a new terminal and type java --version. If Java was successfully installed, you should see a message similar to the following:

openjdk 17 2021-09-14
OpenJDK Runtime Environment (build 17+35-2724)
OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)

If you already had a version of Java installed, then you may need to manually edit your Environment Variables and remove any old JDK paths from the Path variable.

About

A PowerShell script which downloads & installs Java from the OpenJDK site, and configures necessary environment variables.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published