Introduction and Windows Installation of Java | Basics

java instalation

If you are a beginner want to learn a programming language, you might wonder why should I learn a specific language? who uses this language ? what can I do with it? etc. Well, Java is one Programming language that can answer all the answers positively. In this article, we will guide you for java installation on any Windows operating system.

It’s a platform-independent language which means the same code can run on any system irrespective of the operating system installed in the system. It is used by many leading companies in the world like Netflix, Spotify, LinkedIn, etc. Java is open source meaning that it is free to use and modify according to ones need as source code is available free to use. Java has an incredible online support community. there as plenty of developers out in the world who are contributing to third-party libraries available for free.

It is an Object-Oriented Language, making Java a flexible, system modular, and extensible programming language. the basic working unit of  Java is an object 

Now let’s see how to install java on your windows machines

1. Open a browser and go to the link: “” and click on the free download icon.

2. click on the link to download the file and start the installation by double-clicking on the file. It will start downloading an installer.


Once the installer is downloaded it will automatically start. Select the destination folder and hit install. as simple as that

Now to make our java library accessible, we need to add the location of java compiler to the environmental variables of OS. Environment variables define some aspect of a user’s or a program’s environment that can vary.

Adding Java to Environmental Variables

  1. Right-click on  My PC, Choose Properties.
  2. Click the Advanced system settings link.<7>
  3. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  4. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
  5. Reopen Command prompt window, and run your java code.

Check out our more articles –

  1. Difference between c and c++
  2. Difference between java and c++

Leave a Reply

Your email address will not be published. Required fields are marked *

Close Bitnami banner