WHY Install Oracle’s Java?

This article is an updated ‘how-to’ for installing Oracle’s Java JDK 8u111 (or SE 8u111) and Google’s Android Studio 2.2 on the 64-Bit Debian 8.6 Cinnamon (Jessie) PC. If you wish to develop software on the Android platform on your Debian 8.6 PC, then this ‘how-to’ is for you. Note that most necessary steps are performed at the command line in a terminal – if you aren’t acquainted with this, I would recommend reading about it before trying out this ‘how-to’ first.

Before we start off on our journey, I will assume that you have installed the latest version of Debian – currently at version 8.6.0 and up to date it. You have set it up to provide such access to the user as well. This indicates that Java is not installed by default clearly. We will now install Oracle’s Java. Why install Oracle’s Java? Good questions and the answer is that Oracle’s Java is preferred by Google. In the event you intend to use Java for Android development, then Google says it is better to use Oracle’s version – their Android Studio says that we now have stability problems with OpenJDK.

  • Manny And Me
  • Little-Known Company Facts: Post a bit of company history few people know about
  • Introducing Java 8
  • Call for Entries – Deadline for online entries (re. 2019): Friday 26 July, 12 noon
  • Analyse and manage dangers in the use of collaborative technology
  • On another page enter the details for signing up
  • Design your web pages
  • Align the colored wires according to the diagrams above

Whether this is true is a moot point here – should you choose intend to do Android development later, install Oracle’s Java – else then, any Java will do, even OpenJDK. This informative article assumes that there is no Java installed on your Debian 8.6 PC. If you previously experienced installed other Java, then you will need to make a decision – keep that Java and install Oracle’s Java or remove that Java and install Oracle’s Java in its place. That decision is completely up to you nevertheless, you need to keep in mind that Google’s Android Studio suggests Oracle’s Java.

NOTE: There are currently two variations of Oracle’s Java SE (or JDK) – versions 8u111 and 8u112. Please, make reference to the release records of each version to determine which version is ideal for you. In the full case of the article, version 8u111 can be used for example – you free absolve to choose which version to install.

It is also recommended that you download the API documents, demos, and samples for the JDK – although this is not required for Android development on Android Studio. The final two instructions in the above is only suitable if you have downloaded the demos and the paperwork. 111′ indexes in the folder.

The first command word will generate the ‘/usr/lib/jvm’ index. 111′ directory sites to ‘ /usr/lib/jvm’ – where the root of all Java related data files resides. The final command will place you back to your home listing. 111′ directories – even your home directory! 111′ directory in ‘ /usr/lib/jvm’ is highly recommended as this will maintain line with other Linux distro’s keeping the Java files. This whole article displays that recommendation.

111′ directory is still in your name and group. 5 main 4096 Jun 24 14:55. The next matter to do is to inform Debian 8.6 where Oracle’s Java JDK resides and creates a default Java. For this we use the ‘update-alternatives’ command word. These will install all the necessary links to Oracle’s Java, including a slave hyperlink for the ‘man’ web pages for Java.

After the command word has been executed, the default Java was automatically established to Oracle’s Java. Oracle JDK 8 properly has been setup. Now we have to set the environment variables and paths correctly for the whole Debian 8.6 system. This will execute the nano text editor and open the ‘/etc/bash.bashrc’ file for editing. Now add (or edit) the following lines by the end of the document.

Save the document and close it. HOME and PATH environment variables for the whole system. HOME environment variable points to the JDK root while the PATH environment variable will add the ‘/bin’ directory of the JDK to whatever path that was already specified. Remember that these environment factors shall be used for Android Studio room, and other programs which uses Java. This will enable the ‘javac’ (the Java compiler) command word to be performed from any index.

Note that the ‘javac’ control is not essential to Android software development, but it might prove useful if you are running Java programs from a terminal. In addition, it would be useful if you are new to Java and desire to test software from the control line during the learning process. Now log out and then sign in again to the system in order to ensure that both the environment factors are set. Since you are employing the 64-bit version of Debian 8.6, it’s important to notice that Android Studio requires some 32-bit libraries to perform properly. Remember that, if you neglect to install these deals, you won’t have the ability to use Android Studio without running into mistakes.