Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This batch script allows you to easily switch between different installed versions of Java on your Windows system. It updates the JAVA_HOME environment variable and modifies the system PATH accordingly.

Notifications You must be signed in to change notification settings

maxisandoval37/SDKMAN-For-Windows-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDKMAN-For-Windows-Java

Java Version Selector for Windows

logo

Overview

This script allows users to manage and switch between different Java versions installed on a Windows system. It also provides an option to download and install specific Java versions.

Features

  • Lists installed Java versions.
  • Allows switching between different Java versions.
  • Displays the current Java version.
  • Downloads and installs selected Java versions.
  • Updates system environment variables for JAVA_HOME and PATH.

Prerequisites

  • Windows operating system
  • Administrator privileges (the script requests elevation if necessary)

How to Use

  1. Run the script: Execute the .bat file as an administrator.
  2. Choose an option from the menu:
    • [0] Show the current Java version.
    • [1-N] Select a Java version installed on your system.
    • [8] Exit the script.
    • [9] Download a Java version.
  3. Downloading Java: If you select option [9], choose the Java version you wish to download and install.
  4. Apply Changes: Once a Java version is selected, the script updates JAVA_HOME and PATH accordingly.

Java Versions Available for Download

  • Java 7
  • Java 8
  • Java 11
  • Java 17
  • Java 21
  • Java 24

Notes

  • The script modifies system environment variables using setx, which requires administrative rights.
  • If a Java version is downloaded, a system restart may be required for changes to take full effect.
  • The Java download URLs should be updated if necessary, as they may change over time.

Example Output

image

License

This script is free to use and modify.

Created By: Maximiliano Sandoval

About

This batch script allows you to easily switch between different installed versions of Java on your Windows system. It updates the JAVA_HOME environment variable and modifies the system PATH accordingly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published