
⇐ Back | Page | Next ⇒ |
Java enables cross-platform application development and deployment, supporting a wide variety of platforms from embedded devices through to enterprise servers.
Oracle Java 8 will continue to receive regular updates through until at least December 2020, and is supported through until March 2025.
To install Oracle Java 8, complete the following steps:
sudo add-apt-repository -y ppa:webupd8team/javaPackage lists will be updated automatically.
sudo apt-get install -y oracle-java8-installerThe Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX message is displayed.
┌───────────────────────────────┤ Configuring oracle-java8-installer ├───────────────────────────────┐ │ │ │ Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX │ │ │ │ │ │ │ │ You MUST agree to the license available in http://java.com/license if you want to use Oracle JDK. │ │ │ │ <Ok> │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────┘
<Ok>
and press Enter. The Do you accept the Oracle Binary Code license terms? prompt is displayed.┌─────────────────────────────────────────────────────────┤ Configuring oracle-java8-installer ├─────────────────────────────────────────────────────────┐ │ │ │ In order to install this package, you must accept the license terms, the "Oracle Binary Code License Agreement for the Java SE Platform Products and │ │ JavaFX ". Not accepting will cancel the installation. │ │ │ │ Do you accept the Oracle Binary Code license terms? │ │ │ │ <Yes> <No> │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
<Yes>
and press Enter. The download and installation process will begin.java -versionThis command produces output similar to the following:
java version "1.8.0_171" Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)Oracle Java 8 is now installed and ready for use.
⇐ Back | Page | Next ⇒ |
So i have run into this error after executing your script can you help me with this?
The following packages have unmet dependencies:
unifi : Depends: mongodb-server (< 1:3.6.0) but it is not going to be installed or
mongodb-10gen (< 3.6.0) but it is not installable or
mongodb-org-server (< 3.6.0) but 3.6.6 is to be installed
E: Unable to correct problems, you have held broken packages.
same issue