While to install the execution environment we execute: sudo apt-get install default-jre Y finally we install Java with this command: Java HotSpot(TM) 64-Bit Server VM (build 25.Ubuntu 18.04 LTS Bionic Beaver Installation Guideįirst we must update the system with: sudo apt-get update Java(TM) SE Runtime Environment (build 1.8.0_131-b11) $ sudo apt-get install oracle-javaX-installerĪfter the installation script concludes verify the installation with: $ java -version sudo apt-key adv -keyserver -recv-keys EEA14886Īs in the accepted answer (replace X with the target version): $ sudo apt-get update Now import GPG key on your system for validating packages before installing them. and add following content in it: deb trusty main Edit a new PPA file /etc/apt//java-8-debian.list using your favorite text editor. (this is the same ppa from webupd8team, but added manually) Create PPA and import keysįirst, you need to add webupd8team Java PPA repository in your system. In order to get java installed in a debian-based linux distribution create the ppa and import the keys by yourself. The accepted answer is good, but looks like it is possibly a bit outdated and does not work on debian installations. If you ever wish to remove Oracle Java 8 you can use this command: sudo apt-get remove oracle-java8-installer If in the future you do a package upgrade (through the GUI or command line) it will look for a new version of Oracle Java along with all the other installed packages on your system.įrom the command line you can always attempt to do an upgrade on all packages (including Oracle Java) with this command: sudo apt-get upgrade If yours shows the SE Runtime as build 1.8.0_20-b26 then you are good to go. Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_20-b26) It should respond with information pretty similar to this: java version "1.8.0_20" To verify that Oracle Java 8 can be found and is the right version issue this command: java -version I did verify on my system that this repository is up to date and using the version of Oracle Java 8 referenced in your question. Information will scroll past on the screen but when finished java should be installed. This will download Oracle Java 8 and install it. Now issue this command: sudo apt-get install oracle-java8-installer When completed it will return to the shell prompt. You will be prompted "Do you want to continue?". Now issue these 2 commands: sudo apt-get update After it runs it will display information and then prompt you to hit Enter. If it asks for a password enter your user account password. When running that command it may (or may not prompt) you for your password. This will add a repository where developers place updated version of Oracle Java 8 in a format easily installed by Ubuntu package managers. Open a Linux terminal (command prompt) and issue these commands: sudo add-apt-repository ppa:webupd8team/java First delete the file you downloaded as it isn't needed and proceed with these instructions: If you want the easy route to installing and updating Oracle Java 8(including the JRE, JDK and plugins for browsers) on Ubuntu 12.04 (or later) then I recommend doing it this way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |