[Tutorial] How to add Java 9 to Laragon (the portable way)

  • administrators
    | 132054 points

    Open Terminal (Menu > Laragon > Terminal) then run this 1-liner command:

    mkdir %LARAGON_ROOT%\bin\java\jdk-9 && cd %LARAGON_ROOT%\bin\java\jdk-9 &&  wget https://sourceforge.net/projects/laragon/files/addon/jdk/jdk-9.tar.gz && tar xzf jdk-9.tar.gz

    Close the Terminal, then open it again, you can check Java now is in your system by typing:

    java -version

    That's it.

    You can run step by step:

    1. Create a folder name jdk-9:
    mkdir %LARAGON_ROOT%\bin\java\jdk-9
    1. Go to the folder:
    cd %LARAGON_ROOT%\bin\java\jdk-9
    1. Download jdk-9 portable:
    wget https://sourceforge.net/projects/laragon/files/addon/jdk/jdk-9.tar.gz
    1. Extract it:
    tar xzf jdk-9.tar.gz
    1. Close the Terminal

    2. Open the Terminal again. Now you'll have JDK 9 in Laragon:

    java -version
    #------ Result -------
    java version "9"
    Java(TM) SE Runtime Environment (build 9+181)
    Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

    That's all forks!

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.