Skip to content

Instantly share code, notes, and snippets.

@enspdf
Forked from IvanCl4udio/Java11_PopOS.markdown
Created September 22, 2022 20:19
Show Gist options
  • Select an option

  • Save enspdf/f44b71d1b6eee8b09407458b73cc7084 to your computer and use it in GitHub Desktop.

Select an option

Save enspdf/f44b71d1b6eee8b09407458b73cc7084 to your computer and use it in GitHub Desktop.

Revisions

  1. @IvanCl4udio IvanCl4udio revised this gist May 19, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Java11_PopOS.markdown
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ## How install and config Java 11 on PopOS ##

    ### Introduction
    PopOS is created from Ubuntu, so the configuration for Java environment can be follow the same way.
    We need only install the new version from the JDK and automatically it will be set as default. However, if you like rollback to previously version that was installed before, you can use the last step to do that.
  2. @IvanCl4udio IvanCl4udio revised this gist Dec 7, 2020. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions Java11_PopOS.markdown
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,14 @@
    # Introduction
    ### Introduction
    PopOS is created from Ubuntu, so the configuration for Java environment can be follow the same way.
    We need only install the new version from the JDK and automatically it will be set as default. However, if you like rollback to previously version that was installed before, you can use the last step to do that.

    # Steps
    ## Install the JDK 11
    ### Steps
    #### Install the JDK 11
    ```bash
    sudo apt update
    sudo apt install openjdk-11-jdk
    ```
    ## Change default configuration from JDK
    #### Change default configuration from JDK
    ```bash
    sudo update-alternatives --config java
    ...
  3. @IvanCl4udio IvanCl4udio revised this gist Dec 7, 2020. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions Java11_PopOS.markdown
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,9 @@ sudo apt install openjdk-11-jdk
    ## Change default configuration from JDK
    ```bash
    sudo update-alternatives --config java
    ...
    * 0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
    1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
    2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
    Press <enter> to keep the current choice[*], or type selection number:
    ```
  4. @IvanCl4udio IvanCl4udio created this gist Dec 7, 2020.
    14 changes: 14 additions & 0 deletions Java11_PopOS.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # Introduction
    PopOS is created from Ubuntu, so the configuration for Java environment can be follow the same way.
    We need only install the new version from the JDK and automatically it will be set as default. However, if you like rollback to previously version that was installed before, you can use the last step to do that.

    # Steps
    ## Install the JDK 11
    ```bash
    sudo apt update
    sudo apt install openjdk-11-jdk
    ```
    ## Change default configuration from JDK
    ```bash
    sudo update-alternatives --config java
    ```