Post thumbnail
FULL STACK DEVELOPMENT

The Complete Java Installation Guide: Steps to Get Started

By Lavish Jain

Java is an important programming language that every developer should know in order to crack full-stack development. The important first step for that is Java Installation!

If you are confused about how to do so, this article is there to help you out! This is a step-by-step guide on Java installation. So, without any delay let us get started!

Table of contents


  1. Java Installation: A Step-by-Step Guide
  2. Setting up Environment in Java
  3. Conclusion

Java Installation: A Step-by-Step Guide

Step 1:

 Open the Java Downloads in the browser and it will navigate to the official Oracle Java downloads page.

Step 2: 

  • Select version of the Java which we want to download.
  • Select the operating system.
  • Step 3: Scroll down to the page and click on the URL option suitable for your computer Operating system. But for a 64-bit machine, choose the software name ending with x64.

x64MIS Installer -windows  

x64 DMG Installer –macOs
AD 4nXcIERprfWyxyeckSDhldgQAjQA48tocqcFzsQSkSiFeTZ7Hrr9MrbC1gWkGfjO5VXVXwZYY9 dIAD 4nXcDO8cqQROtJHLJiX2Uw CW3PZYRZtLCexqtXpmoWqbgGhB4aT7w 9CCrwxoVbzbRraXEBKpxHlzPP3tHj3xq dZfdFHHhhmNp4c5hDFTEXqvjROYejxpUWUWzk5

Step 3: 

 After the downloading procedure is complete, we need to run the installerAD 4nXfCaNFJ2zSeWKddiQK3lZMjsY1 YGstdOSEQNthESwef6KwBnKkXVsrU7HZnpsB3XGHrlKujbAM7HTAKLNGLJgiMdWCkUS

Step 4: 

 Once Java installation wizard opens, click on the Next button as shown below:

AD 4nXcJyMtLqpM8JyHm2Nw oFm1BMCIHnpixZAwS6Ke0eSt3 ucaTcuGJzfNY D28MuAiSkGqhHB9IZpcBP6SyCnRLstgmvvN5MNx3lpSKoqMfEEkyQ0n6ITDq4XTrDy29QhlgMOrw Dy4VzhFJUzXsRa XRiyyIq3Abl936 vko8cZMd9ZVTsPs2A?key=eQppOIowd3U3ROB2rUwchg

Step 5: 

Again click on the Next button if we wish to install the Java development kit in the default directory(encircled with a green color), or we can change this directory by clicking on the Change button.  
AD 4nXdj6896PTwi4 aMmiehm58jRUmCYof ot1rHsU3bBBifScybdOFCE4QUmUuX46Cd4YvrUmlZzpwBMCzp2oEILSxcCooNzqPTmOgQ20osxYRnvbUK6AYtM7jRwPDvqP9OOQjngJ2W 7Vbsn CG1VhXvReZ4up470szfT8ql8PRrCl79LFsuTyQ?key=eQppOIowd3U3ROB2rUwchg

Step 6: 

The installation will begin as shown below:
AD 4nXcM8AMQ3YCiNVmDxmBQ7EtykUvAnLtbbnoQHP fHdAnhDoX1 l2ithw5Elvsg2EtGj R2cH1c1n9 XPhRRxi1GZU2Id ln9dWUBtFDG8tmz72x9moZNvmsK0ZsxZ vXXXrnq 7nWZeUKGiZyaOmKxUwIz0uOYwa9lysECDSTe2fWR1S 4cKTJs?key=eQppOIowd3U3ROB2rUwchg

Step 7:

Finally, we can click on the Close button after the confirmation window appears which saying that the Java is installed.
AD 4nXfC XI D mmHvTcPdEU75JMWdODjP5ZdJmmT4Yzg5tcVbz7hkpXNWhLY8cA0WZB5JMUHOIV7Bje5AbYgeIxkSsVmbOnrkMks0kCN4hvnlygjddK8IvIYAPgAYV3J65QqFE1cjpfUE9Tn MlLOEeBn6TWZtf4C6eopvo1RSagWwWV09U2eOYlD0?key=eQppOIowd3U3ROB2rUwchg

MDN

Setting up Environment in Java

After Java installation, you have to set up the environment variable.

Step 1:

Locate the JDK Installation Folder:

After installing the JDK, it’s important to find out where it’s installed. By default, java is installed in “C:\Program Files\Java\jdk\bin” folder OR “C:\Program Files(x86)\Java\jdk\bin”. In case, you have installed java at any other location, then add that path.

C-drive  🡪 Program Files🡪java 🡪jdk 🡪 bin (copy the path) 

Step 2:

Go to the search bar and search for Environment variable -> click on Edit system Environment variable.

Under the Advanced System Setting option click on Environment Variables as highlighted below.
AD 4nXfU1y hXNiizZFFbtNN5VUiUoZtM2ggHTjm9tV6VTrrDonB0Y69xV6KFCnyjQBtT8bunG9GjbnVadOplLHnKNvFYY5VYqhKS0zMgLsFQ7ppz2BZWXKhBsgZuiXUVkO AOiATGkZ6ZAj JkpJpNAJ0M6QpBj3fQUiapUYXl8XNaD4U9n5qkAw?key=eQppOIowd3U3ROB2rUwchg

Step 3:

Now, you have to alter the “Path” variable under System variables so that it also contains the path to the Java environment. Select the “Path” variable and click on the Edit button as highlighted below.
AD 4nXfyiXa1rbahJE PablLw3Pb1LHyZ0D7kQ7LjS9Ep5UvKD EuqF9B674ii6u37re6G qu90cma 3k9VgeVsZAnAL7pQTBfneJ42YPVHqkxHAj1HweisxscaHRggG3Qqe7tNkldBIDK0OCs

Step 4:

You will see a list of different paths, click on the New button, and then add the path where java is installed. By default, java is installed in “C:\Program Files\Java\jdk\bin” folder OR “C:\Program Files(x86)\Java\jdk\bin”. In case, you have installed java at any other location, then add that path.
AD 4nXdyBWb NDZFLAQzJRn8snJjDUjJDIzXPtOk BH88li4FfLzUxc9GuBULk5NZoSZERnqrGJlD89PiWPcvf niWJ2o7cjQi52JNWXEn 65Ww7lhe1atUKWgha2AW1Zozx5vl4pMINILGI9FIyEQWvuvU9d8pXTp3eO g0IK4 2XV 8yRH478 QMQ?key=eQppOIowd3U3ROB2rUwchg

Step 9

Click on OK, Save the settings, and you are done !! Now to check whether the installation is done correctly, open the command prompt and type java –version. You will see that Java is running on your machine.

This is how you can install Java on your machine!

In case, you want to learn more about Java programming and gain in-depth knowledge on full-stack development, consider enrolling for GUVI’s Certified Full-stack Developer Course that teaches you everything from scratch and make sure you master it!

Conclusion

In conclusion, installing Java and setting up the environment variables is a crucial first step in your journey toward mastering full-stack development. By following this step-by-step guide, you can seamlessly install Java and ensure it’s correctly configured on your system.

With Java successfully installed and the environment properly set up, you’re now ready to start building and running Java applications, paving the way for further exploration into backend development and beyond.

Career transition

Did you enjoy this article?

Schedule 1:1 free counselling

Similar Articles

Loading...
Share logo Copy link
Free Webinar
Free Webinar Icon
Free Webinar
Get the latest notifications! 🔔
close
Table of contents Table of contents
Table of contents Articles
Close button