Getting Start
The most important thing to learn Java as beginner is installation of Java. We will start learning Java from installation to core Java concept. For installation you should aware what are the term related to Java installation. We wont dive deep in these term for this post. I will explain more when it required. For now just read and keep in mind the following terms.- JRE
- JVM
- JDK
JRE
JRE stands for "Java Runtime Environment". It is a container for the Java Virtual Machine. It contains all necessary files, which help to run JVM. In easy way it is a set of libraries which helps to run JVM.
JVM
JVM stands for "Java Virtual Machine". It is a process which helps to run the Java program. Every Java program run under a virtual machine. If virtual machine is crashed its mean your application crashed.
JDK
JDK stands for "Java Development Kit". It has the compiler and core libraries to aid the computer programmers. It has many other useful tools we will learn in futures posts.
According to the definition of those term we need JRE to run JVM and JDK to write the code and compile it. In next post I will discuss what is compile code. Now focus on Java installation.
Follow the steps:
I assume you are using Windows x64 Operating system. Download the JDK related to your OS and double click on it. It start installation wizard. Follow the instruction and when it finish it ask you for the JRE installation, install it as well.
NB: JDK contains development kit as well as JRE.
IDE
IDE stands for "Integrated Development Environment". What does it mean? Its mean all the tools for the development are in one software. The tools IDE provides, are:
- Editor; where you can write your code
- Compiler executer; where you can use JDK compiler
- intellisense; suggest the Java vocabulary.
- Debugger; explain in future post.
IDE provides us everything in one place rather we move on different software program to write code in Notepad and compile it in command line. There are many IDEs but we follow one of them:
Download eclipse from here. Extract it in your favourite location and open its folder. You find eclipse.exe file there. Double click this file and eclipse IDE is ready.
How to install Netbeans
Downloads Netbeans from here. Double click on the downloaded file and follow the instruction. Install custom IDE features. When it finishes, go to the start menu and type netbeans run the installed file.
NB: IDE installation must after the JDK installation.

No comments:
Post a Comment