Prepare your working environment (EN)

Développement  Installation 

We want to develop our own applications but how to be effective when we work ? What should I do to start? What software do I need to install? A good craftsman has good tools. It’s the same for a software developer..

Environnement de travail

When you are a lambda user you can install a Java runtime environment ⇒ Java Runtime Environment. To develop, we need more tools to compile, monitor …​ and we will use a Java Development Kit (JDK)

Java installation

If you are running Linux (Fedora, CentOS) you can run

~$ sudo yum install java-11-openjdk-devel

under Linux (Debian, Ubuntu) you can run

~$ sudo apt install default-jdk

Java installation (old version)

If you want to install a last version as Java 8 you can follow this section

Figure 1. logo Java

You can download a version of Java 1.8+ at this URL. This is fine for Windows or Linux users (choose the rpm version)

If you are running Linux (Fedora, CentOS) you can run

~$ cd ~/Downloads/
~$ sudo yum install jdk-8u181-linux-x64.rpm

under Linux (Debian, Ubuntu) you can run

~$ cd ~/Downloads/
~$ sudo apt install alien
~$ sudo alien jdk-8u181-linux-x64.rpm
~$ sudo dpkg -i jdk-8u181-linux-x64.deb

If you have several versions of Java on Linux you can use the following command to set the default version

~$  update-alternatives --config java

Check that Java is installed

~$  java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

IDE installation

An integrated development environment (IDE) is a set of tools that can increase the productivity of software developers. It includes a text editor for programming, functions that allow to start the compiler, run tests, run executables, debug online …​ There are several IDE on the market.

When you develop in Java, you have several alternatives: Eclipse, NetBeans, / idea / [IntelliJ Idea]

After 20 years of development, I used a lot IDE. IntelliJ Idea is for me the best one, but the Premium version is not free. You have a trial version for 30 days but the community version is free, and you can use this version

We will use this Community version for the TP. You can download and install it. FYI this community version is also the base of Android Studio used for Android development.

Launch your IDE to check that everything works

Figure 2. logo IntelliJ