Moreover, you also learned how to set the default Java version on your system. You have learned how to install Java JDK and JRE on your Ubuntu 20.04 system using the terminal. Now, you can install and run the Java applications on your system. Java has been successfully installed on your system. So, if you want to install only JRE on your system then using the following command you can install it on Ubuntu 20.04: $ sudo apt install default-jreĪfter executing the above command, you will see the following output on your terminal window: JRE is mostly included in the Java JDK package. It helps to run almost all Java applications on your system. JRE is also known as the Java Runtime Environment. After setting that you can check the default Java version set on your system. Enter the number which you want to keep as a default Java version and press Enter. The prompt will display on the terminal that will ask you to enter the choice number which Java version you want to set as default. The list of installed Java versions is presented in the terminal window. You will see the following output on your system: Now, to change the default Java version using the update-alternatives command as follows: $ sudo update-alternatives -config java If multiple Java versions are installed on your system Ubuntu 20.04, then you can check the default Java version using the command as follows: $ Java -version So, after that you can Java version using the following command: $ Java -version Set the default Java version on Ubuntu 20.04 and you will get the following Oracle Downloads page as shown below: 3 Scroll down, and under Java SE Development Kit 8u, you will get several downloads for Java for different Operating Systems and different specifications. Some older java applications might require the previous Java version If your application requires the JDK-8 version then you can install it using the following command: $ sudo apt install openjdk-8-jdkĪfter executing the above command, the Java JDK-8 installation will begin on your system and it will take some time to complete the installation process. Windows 8.1 pro freefull version 32
0 Comments
Leave a Reply. |