Setting up JAVA for Android Studio on Windows

Java constitutes an essential dependency for various tools, including Android Studio and Burp Suite. While Android Studio has introduced its own programming language, Kotlin, in recent times, a select group of developers still prioritize Java.

Hello everyone. In today's tutorial, we'll provide you with a step-by-step guide to smoothly install Java on the Windows platform.


Let's begin by checking if Java is already installed on my Windows system. 

As you can observe, Java is absent, so we need to install it.

To begin, let's initiate the process of downloading the Java Development Kit (JDK) executable file for the Windows platform.


Oracle JDK 20 - Download for Windows

This link provides access to download Oracle JDK 20 for the Windows operating system. Oracle JDK (Java Development Kit) is a widely used development environment for building Java applications.


In this case, I'm opting for the x64 installer

Once the download is complete, run the installer. During installation, you can generally stick with the default settings unless you have specific reasons to make changes. 

Click "Next" until you reach the successful installation screen. 

Once Java is installed on your system, Android Studio requires a correctly set up JDK.


Set up JDK

Follow the below steps to setup JDK:

1. Configure the "JAVA_HOME" Environment Variable:

a. Open the Start menu and search for "Environment Variables." 

b. Click on "Edit the system environment variables." 

c. Within the System Properties window, access the "Environment Variables" button. 

d. In the "System variables" section, click "New" to create a new variable. 

Assign the Variable name as JAVA_HOME and the Variable value as the path to your JDK installation directory (C:\Program Files\Java\jdk-20).

Click "OK" to save this new environment variable.

2. Add the Java Bin Directory(C:\Program Files\Java\jdk-20\bin) to the PATH. 

a. Still, within the Environment Variables window, locate the "Path" variable under the "System variables" section and select it. 

b. Click "Edit" and the Edit Environment Variable window, click "New" and add the path to the "bin" directory within your JDK installation directory. 

Click "OK" to preserve the changes.

To verify the successful installation and functioning of Java on your system, open a new command prompt and execute the command "java -version." This command will display the version details if Java is properly installed.

In our next article, we'll delve into the installation of Android Studio and guide you through the setup of an Android Virtual Device (AVD) Emulator. If you have any inquiries or encounter issues, feel free to share them in the comment section.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Ok, Go it!