GroTechMinds

how to configure jdk jre in your laptop

How to configure JDK/JRE in your Laptop

Configuring the JDK (Java Development Kit) or JRE (Java Runtime Environment) on your laptop is crucial for several reasons, particularly if you are a developer or an Automation Tester or someone who needs to run Java applications. Here are the key reasons why this configuration is important:

Write and Compile Java Code:

The JDK provides the necessary tools, including the Java compiler (javac), which are essential for writing and compiling Java programs. Without the JDK, you cannot develop Java applications.

Execution of Java Programs:

The JRE is necessary to run Java applications. It provides the Java Virtual Machine (JVM) and the class libraries needed to execute Java programs.

Platform Independence:

Java applications are designed to be platform-independent. Configuring the JDK/JRE correctly ensures that Java applications can run seamlessly on any operating system.

Let's discuss the steps now in order to do it
Step 1: Go to Google and type: “JRE download”
How to configure JDK/JRE in your Laptop
Step 2: Click on the second link leading to Oracle website
How to configure JDK/JRE in your Laptop
Step 3: Under Java Download select JDK 17,Among the among 3 OS select windows if your laptop is window
How to configure JDK/JRE in your Laptop
Step 4: Under in Windows OS tab,Click on X64 Installer Link
How to configure JDK/JRE in your Laptop
Step 5: Once after downloading double click on the downloaded .exe file
How to configure JDK/JRE in your Laptop
Step 6: Note down the JDK location and click on the next button, next button and close button
How to configure JDK/JRE in your Laptop
Step 7: AT this location your JDK is finally installed C:\Program Files\Java\jdk-17\bin
How to configure JDK/JRE in your Laptop
Step 8: Now do the right click on THIS PC and click on the Properties button
How to configure JDK/JRE in your Laptop
Step 9: Advanced system settings: Click on 'Advanced system settings' on the left side.
How to configure JDK/JRE in your Laptop
Step 10: Environment Variables: In the System Properties window, click on the 'Environment Variables' button.
How to configure JDK/JRE in your Laptop
Step 11: Under Environment Variables click on new
How to configure JDK/JRE in your Laptop
Step 12: Enter any variable name and copy it. Paste it in the JDK location same as shown below
How to configure JDK/JRE in your Laptop
Step 13: Repeat the same step for System variable as shown below
How to configure JDK/JRE in your Laptop
Step 14: Click on Ok button
How to configure JDK/JRE in your Laptop
Step 15:Open the  command prompt on your laptop as shown below
How to configure JDK/JRE in your Laptop
Step 16: Type “java –version” and press enter, if you are getting the java version in the console output then congratulations is successful.
How to configure JDK/JRE in your Laptop
Summary:
Configuring the JDK/JRE on your laptop is essential for:
  • Developing and compiling Java applications.
  • Running Java applications and ensuring they work across different platforms.
  • Setting up a consistent development environment.
  • Using development tools and IDEs effectively.
  • Ensuring application performance and security.
  • By correctly setting up the JDK/JRE, you enable a robust and efficient Java development and runtime environment, ensuring your applications are developed and executed smoothly.
conclusion :

Configuring the JDK (Java Development Kit) or JRE (Java Runtime Environment) on your laptop is important for writing, compiling, and running Java programs. It ensures that your Java applications work seamlessly across different operating systems, allowing for platform independence.

By following the steps to download and install the JDK/JRE, you can set up a consistent development environment, use development tools effectively, and ensure application performance and security. This will enable you to develop and execute Java applications smoothly.

Upskill Yourself
Consult Us