Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 808 Bytes

File metadata and controls

23 lines (20 loc) · 808 Bytes

Java 17 installer script:: How to Use: Save the script: Copy the script to a file named install-java17.ps1 Save it to your Desktop or any convenient location

Run as Administrator: powershell # Right-click PowerShell and select "Run as Administrator"

Navigate to where you saved the script

cd C:\Users\xxx\OneDrive\Desktop

If you get an execution policy error, run this first:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Run the script

.\install-java17.ps1 What the script does: ✅ Downloads the latest Java 17 JDK from Adoptium (Eclipse Temurin) ✅ Installs Java silently without user interaction ✅ Sets the JAVA_HOME environment variable system-wide ✅ Adds Java to the system PATH ✅ Verifies the installation ✅ Cleans up temporary files