If we need Java 9 (development version as of time of writing) or Java 7 or 6 (legacy versions), we can install those as well. We need to re-run above command, except we will change number 8 for 6, 7 or 9. • Ways to install Cassandra. • Install using Yum repositories on RHEL, CentOS, and Oracle Linux. • Install using APT repositories on Debian and Ubuntu. • Install on all Linux-based platforms using a binary tarball. • Steps for installing the same version as other nodes in your cluster. • Steps for uninstalling Cassandra by installation type. • Installing Cassandra on cloud providers. • Instructions for various platforms. • Steps for installing the Oracle JDK on RHEL-based Systems. • Steps for installing the Oracle JDK on Debian-based systems. • Steps for installing OpenJDK 8 on RHEL-based systems. • Steps for installing OpenJDK 8 on Debian-based systems. • Recommendations for production environments. • Install location topics. Introduction The programming language Java and the Java virtual machine or JVM are used extensively and required for many kinds of software. This tutorial provides different ways of installing Java on Debian 8: you can download the or the. If you decide to install multiple versions of Oracle Java, you can follow the section on. The last section outlines Prerequisites To follow this tutorial, you will need: • One Debian 8 server. • A sudo non-root user, which you can set up by following. Installing the Default JRE/JDK The easiest option for installing Java is using the version packaged with Debian. Specifically, this will install OpenJDK 8, the latest and recommended version. First, update the package index. • sudo apt-get update Next, install Java. Specifically, this command will install the Java Runtime Environment (JRE). • sudo apt-get install default-jre When prompted, type y for yes to confirm the installation. There is another default Java installation called the JDK (Java Development Kit). The JDK is usually only needed if you are going to compile Java programs or if the software that will use Java specifically requires it. The JDK does contain the JRE, so there are no disadvantages if you install the JDK instead of the JRE, except for the larger file size. You can install the JDK with the following command: • sudo apt-get install default-jdk You now have the Java Runtime Environment or the Java Development Kit installed. Installing the Oracle JDK If you want to install the Oracle JDK, which is the official version distributed by Oracle, you’ll need to follow a few more steps. You’ll first need to install the software-properties-common package in order to use the apt-get-repository command. This will work to add the repository to your sources list and import the associated key. • sudo apt-get install software-properties-common When prompted to confirm the installation, type y for yes. To ensure that we get the correct source line on Debian, we’ll need to run the following command that also modifies the line: • sudo add-apt-repository 'deb xenial main' Once we do that we’ll need to update: • sudo apt-get update Now we’ll go through the installation process of different versions of Java. You can decide which versions you would like to install, and can choose to install one or several. Because it’s the latest stable release, Oracle JDK 8 is the recommended version at the time of writing. Oracle JDK 8 Oracle JDK 8 is the latest stable version of Java at time of writing. You can install it using the following command: • sudo apt-get install oracle-java8-installer Again, you’ll be prompted to type y to confirm the install. You’ll also be required to accept the Oracle Binary Code license terms. Use the arrow key to select “Yes”, then press “Enter” to accept the license.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |