As Java is always being updated and changing, Java developers sometimes need to work with multiple versions of the JDK (Java Development Kit). It is particularly useful when supporting legacy programs that have been coded in a previous version of Java. For those using a Raspberry Pi to develop or run Java applications, it is possible to have multiple versions of the JDK installed, and switch among them as needed to accommodate older and newer Java programs. In this tutorial, you will see how to change the Java version on a Raspberry Pi.
java
How to locate and set JAVA home directory on Linux
The Java home directory is the installation directory for the Java Runtime Environment and Java Development Kit (see: Java JDK vs JRE. This directory contains all of the files that come with Java and are used to run Java programs or compile them. The location for this directory can change depending on your system (Linux, MacOS, Windows, etc.) and the version of Java that you have installed.
How to run JAR file on Linux
JAR files are those that have been coded and compiled using the Java programming language. In order to run these files on a Linux system, the Java Runtime Environment (JRE) software must be installed first. This is just a software package that allows the system to understand JAR files, and therefore gives it the ability to open and run them. Usually, the JRE package is not installed on most Linux distros by default, so we must first install Java, and then we can open the JAR file(s).
Linux: Install Java
Many developers and programmers choose to use a Linux system as their work environment because of its stability, speed, and ease of use. To get started with programming Java, or to simply run Java applications or applets on Linux, you will need to install the appropriate Java software package. Although this is pretty easy to do, the instructions will vary depending on a user’s Linux distribution, what version of Java they wish to use, and whether they need the JDK (Java Development Kit) or just the JRE (Java Runtime Environment).
Ubuntu 22.04 Eclipse installation
Eclipse is a free Java IDE that can be installed on Ubuntu 22.04 Jammy Jellyfish. It is currently one of the most popular Java integrated development environments available.
How to install IntelliJ IDEA on Ubuntu 22.04 Linux Desktop
IntelliJ IDEA is a free Java IDE that can be installed on Ubuntu 22.04 Jammy Jellyfish. It is developed by JetBrains and has both a free community edition and a commercial edition.
How to Install Open-Source VSCode Without Telemetry on Linux
Visual Studio Code or VSCode is a text editor developed by Microsoft that supports many popular programming languages such as Go, Java, JavaScript, Node.js, Python, C and C++. It is a directory based, language agnostic source code editor which focuses on directories rather than projects and has many extensions available for it. VSCode’s feature set includes bracket matching, syntax highlighting, code folding, linting, debugging, and built in version control via Git, Subversion or Perforce. Ever since the initial release of VSCode in 2015, it has become an increasingly popular programming tool amongst users of all desktop operating systems including GNU/Linux.
How to install Java on Kali Linux
The objective of this guide is to show how to install the Java Development Kit (JDK) on Kali Linux. This is needed by Java developers and programmers in order to compile and run Java applications. It’s also required for security tools that are built in Java.
In this tutorial you will learn:
- How to install Java JDK in Kali Linux
How to install Node.js on Linux
Node.js is a JavaScript runtime environment that is used for hosting websites. It offers users the ability to write websites in JavaScript whose code executes on the server instead of a client’s browser.
To host a website with Node.js on a Linux system, you need to download and configure the Node.js software. Node.js is available for installation on any major Linux distro, although the commands to install it may differ. Most users will also wish to install npm, the package manager for Node.js and JavaScript, when they install Node.js.
In this guide, we’ll show you how to install Node.js from the command line on various Linux distributions so you can get started hosting your JavaScript based website. We’ll also include instructions for installing npm.
In this tutorial you will learn:
- How to install Node.js on major Linux distros
Install npm on Linux
npm is the package manager for Node.js and the JavaScript coding language. It can be installed on a Linux system and then used on the command line to download and install JavaScript packages and their requisite dependencies.
It’s especially useful for developers working with Node.js, as npm’s online registry contains a plethora of JavaScript packages that can be browsed and downloaded with ease. It’s available for installation on any major Linux distro and operates in much the same way as a distro’s package manager, which you’re probably already familiar with.
In this guide, we’ll show you how to install npm on various Linux distributions. We’ll also show you basic usage commands for npm, such as installing and removing software packages.
In this tutorial you will learn:
- How to install npm on major Linux distributions
- Basic usage commands for npm
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
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