https://github.com/valkryst/install_java
A PowerShell script which downloads & installs Java from the OpenJDK site, and configures necessary environment variables.
https://github.com/valkryst/install_java
hacktoberfest installation-script java openjdk
Last synced: 9 months ago
JSON representation
A PowerShell script which downloads & installs Java from the OpenJDK site, and configures necessary environment variables.
- Host: GitHub
- URL: https://github.com/valkryst/install_java
- Owner: Valkryst
- License: mit
- Created: 2021-10-29T13:29:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T14:40:22.000Z (about 2 years ago)
- Last Synced: 2024-10-13T04:21:10.436Z (over 1 year ago)
- Topics: hacktoberfest, installation-script, java, openjdk
- Language: PowerShell
- Homepage:
- Size: 33.2 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](https://github.com/PowerShell/PowerShell/releases) on a 64-bit version of windows.
## Usage
[Download](https://www.wikihow.com/Download-a-File-from-GitHub) the [PowerShell script](https://github.com/Valkryst/Install_Java/blob/main/install.ps1) 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.