We have successfully compiled and run our Hello World program using OpenJDK on Manjaro

How to install Java on Manjaro Linux

Many developers and programmers choose Manjaro because it’s one of the most user-friendly and feature-rich Linux distributions. In this guide, we go over the steps to install the Java Development Kit on Manjaro Linux. We’ll show you how to install both the OpenJDK package (which is free and GPL-licensed) as well as Oracle Java SE Development Kit.

Arch Linux and Manjaro only officially support the OpenJDK, as that is the non-proprietary version. However, the Oracle package can be installed from the AUR, as you’ll see shortly.

In this tutorial you will learn:

  • How to install OpenJDK
  • How to install Oracle Java SE Development Kit
  • How to test Java installation

Read more

Introduction to Javascript loops

Introduction to Javascript loops

Nowadays Javascript can be easily defined as the world most used programming language: it is used on a variety of platforms, it is integrated in web browsers and thanks to the Node.js runtime it can also be used server-side. In this tutorial we will see the loops we can be used in modern Javascript.

In this tutorial you will learn:

  • What is the syntax and how the while loop works in Javascript
  • The syntax of the do/while loop and how it works in Javascript
  • The syntax of the for loop and how it works in Javascript
  • The syntax of the for/of loop and how it works in Javascript
  • The syntax of the for/in loop and how it works in Javascript

Read more

Results of running the application

How to persist data to PostgreSQL in Java

Java is perhaps the most widely used programming language nowadays. It’s robustness and platform-independent nature enables Java based applications to run on mostly anything. As is the case with any application, we need to store our data in some sort of reliable way – this need called databases to life.

In Java database connections are implemented by JDBC (Java Database Connectivity API), that let’s the programmer handle different kind of databases in almost the same way, which makes our lives much easier when we need to save or read data from a database.

In this tutorial we will create an example Java application that will be able to connect to a PostgreSQL database instance, and write data into it. To check that our data insertion is successful, we’ll also implement reading back and print the table we inserted data into.

In this tutorial you will learn:

  • How to setup the database for the application
  • How to import PostgreSQL JDBC Driver into your project
  • How to insert data into the database
  • How to run a simple query to read a database table’s content
  • How to print fetched data

Read more

How to install Java on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective of this tutorial is to install Java on Ubuntu. We will be installing the latest version of Oracle Java SE Development Kit (JDK) on Ubuntu 18.04 Bionic Beaver Linux. This will be performed in three ways: Installing Java using the Ubuntu Open JDK binaries, installing Java via PPA and installing Java using the official Oracle Java binaries.

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver
  • Software: – Java(TM) SE Runtime Environment 8,9,10 or 11

Requirements

Privileged access to to your Ubuntu 18.04 Bionic Beaver Linux system is required to perform this installation.

Conventions

Read more

How to Install Node.js on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to install Node.js the cross-platform JavaScript runtime environment on Ubuntu 18.04 Bionic Beaver Linux from standard Ubuntu 18.04 repository or by use of Node Version Manager, NVM.

This tutorial is available for other Ubuntu Versions:

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Conventions

Read more

Android Studio running on Ubuntu

Install Android Studio On Ubuntu 18.04 Bionic Beaver Linux

Objective

Install Android Studio on Ubuntu 18.04

Distributions

Ubuntu 18.04 Bionic Beaver

Requirements

A working install of Ubuntu 18.04 with root privileges.

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Other Versions of this Tutorial

Ubuntu 20.04 (Focal Fossa)

Introduction

If you’re serious about developing for Andorid, or you just want to play around and see what app development is all about, Android Studio is the best option out there. It’s the official IDE developed by Google for writing Android apps.

Google developed Android Studio for Ubuntu. Up until recently, Google did all of their development on Ubuntu. They just switched over to Debian, in case you were wondering. Either way, it’s similar, so coding for Android on Ubuntu is a good idea.

Read more

Kotlin on Ubuntu 20.04 Focal Fossa Linux

How to install Kotlin on Ubuntu 20.04 Focal Fossa Linux

Kotlin is a general-purpose programming language which interoperates fully with Java. Kotlin’s JVM version of its standard library depends on the Java Class Library, hence this tutorial will first show the reader how to install Java SDK and then a Kotlin compiler on Ubuntu 20.04.

In this tutorial you will learn:

  • How to install Java SDK
  • How to install Kotlin compiler
  • How to compile simple Kotlin program
  • How to run Kotlin program

Read more

Apache Tomcat installed on Ubuntu 20.04

Ubuntu 20.04 Tomcat installation

Apache Tomcat is an HTTP server that can run Java technologies, namely Java Servlet, JavaServer Pages (JSP), and Java Expression Language. In this guide, we’ll show you how to install Apache Tomcat on Ubuntu 20.04 Focal Fossa. We’ll also cover the steps to set up a user for accessing the application manager, which is a panel inside Tomcat that can configure virtual hosts and other applications.

In this tutorial you will learn:

  • How to install and configure Apache Tomcat
  • Open firewall ports for Tomcat and test
  • How to configure credentials for Tomcat admin
  • How to access Tomcat Web Application Manager

Read more

Installation of Node.js and NVM on Ubuntu 20.04 LTS Focal Fossa

How to Install Node.js on Ubuntu 20.04 LTS Focal Fossa

If you are a JavaScript enthusiast you may be interested in installing Node.js, which is a JavaScript runtime environment that executes JavaScript code outside of a web browser. This guide will describe a procedure of installing Node.js and the NVM on Ubuntu 20.04 LTS Focal Fossa.

In this tutorial you will learn:

  • How to install default Node.js
  • How to check Node.js version
  • How to install NVM from source
  • How to any Node.js version per user basis

Read more

Oracle Java SE Development Kit on Ubuntu 20.04 Focal Fossa Desktop/Server

Oracle Java installation on Ubuntu 20.04 Focal Fossa Linux

In this tutorial we will perform an installation of Oracle Java SE Development Kit on Ubuntu 20.04 Focal Fossa Desktop/Server.

Do you with to install OpenJDK the Oracle’s free and GPL-licensed alternative?
Follow our tutorial on how to install OpenJDK java on Ubuntu 20.04 Focal Fossa.

In this tutorial you will learn:

  • How to download Oracle Java
  • How to install Oracle Java
  • How to set path to Java executable by using the update-alternatives tool
  • How to check Oracle Java version

Read more