Prepare your working environment (EN)
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..
When you are a lambda user you can install a Java Runtime Environment (JRE). To develop app, we need more tools to compile, monitor… In this case we will use a Java Development Kit (JDK)
Last version of Java is Java 15 (sepetmber 2020). Java is released every 6 months, but only a few versions are defined as LTS (long term support). As of September 2020, Java 8 and 11 are supported as Long Term Support (LTS) versions, and one later non-LTS version is supported. So today we should use Java 11
All versions are available on this URL https://www.oracle.com/java/technologies/javase-downloads.html
If you are running Linux (Fedora, CentOS) you can run
~$ sudo yum install java-11-openjdk-devel
under Linux (Debian, Ubuntu) you can run in a terminal
~$ sudo apt install default-jdk
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. For that open a terminal
~$ 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)
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.
After 20 years of development, I used a lot IDE. IntelliJ Idea is for me the best one to develop in Java, but the Premium version is not free. But you can use the community version freely.
To simplify mutual aid we will all use the same IDE, Idea Community version. Download the last version.
Launch your IDE to check that everything works