Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

  1. Download and install git bash (https://git-scm.com/downloads/win)
  2. Open Git Bash and run the following commands to install and initialize SDKMAN:

    curl -s "https://get.sdkman.io" | bash
    
    source "$HOME/.sdkman/bin/sdkman-init.sh"
  3. If you want to install SDKMAN in a custom location (e.g., /usr/local/sdkman), use below commands instead:

    export SDKMAN_DIR="/usr/local/sdkman" && curl -s "https://get.sdkman.io" | bash
    
    source "/usr/local/sdkman/bin/sdkman-init.sh"
  4. Verify the installation by running below command

    sdk version
  5. If you encounter an error about a missing zip utility, ensure it is installed on your system before proceeding.


  6.  To install the zip utility, follow these steps:
    1. Visit the GnuWin32 zip package and download the file.
    2. Add the path to the bin folder (where the zip executable is located) to your system’s environment variables as shown in the below image.



  7. After that, restart Git Bash and repeat steps 1 and 3 from the SDKMAN installation process.
  8. Once SDKMAN is set up, you can use the following commands: 
    1. To list available JDKs:

      sdk list java
    2. To install a specific version of java

      sdk install java <version>
    3. To view installed versions of java

      sdk list java
    4. To check current active version of java

      sdk current java
    5. To use a specific version of java 

      sdk use java <version>
  9. To explore more SDKMAN commands, you can visit the official SDKMAN usage page.
  • No labels