There are always a lot of questions for those, who just begin to learn programming. Believe me, step by step you will more and more understand the process of programming. In the meantime, you should arm yourself with patience and be steady in purpose.
In order to start writing programs in Java you will need to configure your software environment. And then we will be able to write our first program together.
To do this, you need to download and install on your PC:
JDK (Java Development Kit) is a kit for Java applications developer. To better understand what does JDK include, let’s look at the picture below.
As we can understand from the picture, JDK includes:
- javac compiler
- full range of Java libraries
- JRE (Java Runtime Environment)
In its turn JRE includes:
- JVM (Java Virtual Machine)
- minimum range of Java libraries
Javac compiler. Programs are transferred from human readable code to code which is read by JVM (Java Virtual Machine). We talked about compiler operation principle in our previous article “Why is Java language so popular?”.
Full range of Java libraries is a tested code, which is used by programmers in their programs. You can learn more about libraries from our article “What is Java class library?”.
JRE (Java Runtime Environment) is a minimum implementation of virtual appliance, which is required for the execution of Java-based applications without compiler and other development tools. In other words, JRE is sufficient for the execution of Java programs, but not for developing of them.
IDE (Integrated Development Environment) is a tool, designed for software development.
Most popular IDEs:
- JetBrains IntelliJ IDEA
Moreover, the first two – Eclipse and JetBrians IntelliJ IDEA – are the most popular among programmers. And here it’s worth to say that Java-programmers are usually divided into two “camps”:
- Vocal advocates of Eclipse
- Vocal advocates of JetBrains IntelliJ IDEA
Some believe that Eclipse is the best integrated development environment, others prefer JetBrains IntelliJ IDEA. This is one of the favorite topics for hot discussion. There are also a lot of articles on this subject with a lot of arguments, why IDE is better… Over time you will also make a choice for yourself and join one camp or another, but until then you just need to install:
- either Eclipse
- or JetBrains IntelliJ IDEA
Eclipse is a free IDE, developed by IBM (International Business Machines Corporation). It is written in Java.
JetBrains IntelliJ IDEA. There are both free and pay versions. It was developed in January 2001 by JetBrains.
Well, it’s time to start the software environment configuration. Below you will find links with detailed instructions for software configuration. Just choose OS (operating system) of your PC and go for it!