Test Blog DD – Install JDK aka Java SDK

Table of Contents

To be able to run any Java application, we need first to install the Java Software Development Kit or abbreviated with JDK or Java SDK.

Firstly we need to understand what is JDK and what is SDK.

2

code block – start

1. What is JDK

Java Development Kit (JDK) is a software development environment used for developing applications and applets. It is one of three core technology packages used in Java programming, along with Java Virtual Machine (JVM) and Java Runtime Environment (JRE). Developers that are just starting to learn Java often mix the JDK and JRE, so we will explain what is the difference between them.

JRE is the on-disk part of Java that creates the JVM, it can be used as a standalone component to simply run Java programs, but it is a part of JDK.

JDK allows us (developers) to create Java programs that can be executed and run by the JVM and JRE. The JDK needs JRE because running Java programs is also a part of developing them.

The main difference between JRE (Java Runtime Environment) and JDK (Java Development Kit) is that JRE is needed only for running Java programs, while JDK, includes JRE and other development tools (for example debugger and compiler), is used both for running and writing Java programs.

javascript

code block – end

To be able to run any Java application, we need first to install the Java Software Development Kit or abbreviated with JDK or Java SDK.

Firstly we need to understand what is JDK and what is SDK.

2

code block – start

2. What is SDK or better to say what is Java SDK

A Software Development Kit (SDK) is typically a set of software development tools that allows the creation of applications for a certain software package, software framework and so on. A SDK can take a form of a simple implementation of one or more Application Programming Interfaces (API) in the form of on-device libraries to interface of a particular programming language.

To break this easier for all of us, SDK is made up of lines of code, written by a third party, that can be added to a digital applications to support new capabilities. Although SDK is mostly associated with mobile applications, it can also be used for websites or other digital platforms.

css

Now that we explained what are JDK and SDK, we will add a graph that shows how they are connected:

code block – end

To be able to run any Java application, we need first to install the Java Software Development Kit or abbreviated with JDK or Java SDK.

Firstly we need to understand what is JDK and what is SDK.

2

code block – start

3. Installation of Java on Ubuntu - the easy way

We will update our repository for Ubuntu 16.04 and 18.04

sudo add-apt-repository -y ppa:linuxuprising/java sudo apt-get update

bash

code block – end

To be able to run any Java application, we need first to install the Java Software Development Kit or abbreviated with JDK or Java SDK.

Firstly we need to understand what is JDK and what is SDK.

3

code block – start

3.1. Install JDK 12

sudo apt-get install -y oracle-java12-installer

bash

code block – end

Leave a Reply

Your email address will not be published. Required fields are marked *