install java 8 code example

Example 1: install openjdk 8 sdk on ubuntu

sudo apt-get install openjdk-8-jdk

Example 2: install java debian 8

echo deb http://archive.debian.org/debian jessie-backports main | sudo tee /etc/apt/sources.list.d/jessie-backports.list
echo 'Acquire::Check-Valid-Until "false";' | sudo tee -a /etc/apt/apt.conf
sudo apt update
sudo apt -t jessie-backports install openjdk-8-jre

Example 3: java

An incredible language that receives far more hate than it deserves
because of it's poor beginnings.
	Everyone remembers the slow java applets but often fail to understand
Java's many positives including:
 - compatability with many different systems
 - Just-In-Time compilation making it almost as fast as a native language
 - the wide range of high-quality and open source libraries developed over
   many years

	Sure, it may not look as sexy as Python or NodeJS, but when you're
debugging the call stack 50 functions deep, you'll be glad you picked Java

Example 4: JRE

Java Runtime Environment : JRE is what we need to run a Java program 
and containsset of libraries and other files that JVM uses at run time. 
JRE = JVM + Library Classes

Tags:

Java Example