Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)įirst it’s highly recommended to install the latest stable version as it is compatible with older versions. Java(TM) SE Runtime Environment (build 1.7.0_60-b19) To set the default Java, run: sudo apt-get install oracle-java8-set-defaultĪlso change number 8 to the Java version you want.įinally check whether everyting is OK: java -version While installation, you’ll be asked to agree the license and then the installer start downloading Java file from oracle website and install it on your system. To install Oracle Java 8, run: sudo apt-get install oracle-java8-installerĬhange the number 8 to 6 (or 7) in the code to install Java 6 (or 7). sudo add-apt-repository ppa:webupd8team/javaĪfter that, update package lists via: sudo apt-get update Input your user password when prompts and it will add the PPA repository into your system. When it opens, copy and paste the command below and hit enter. Press Ctrl+Alt+T on your keyboard to open a terminal window. Note there are no actual Java files in this PPA. There’s a Launchpad PPA (Personal Package Archive) maintained by, a popular Ubuntu Linux blog, which provides the most recent installers to automatically download and install Oracle Java JDK6 / JDK7 / JDK8 from oracle website. This simple tutorial is going to show you how to easily install Oracle Java (JDK) 6, 7, or 8 in Ubuntu 14.04 Trusty Tahr via PPA.
0 Comments
Leave a Reply. |