Wednesday, 28 September 2022

How to Install Java 18 on Windows 10/11, JDK installation | How to Install Java JDK 18 on Windows 11

🚀 Ready to Code Like a Pro?

Join the Ram N Java community for the best Java and Cloud tutorials!

CLICK HERE TO SUBSCRIBE!

Step-by-Step: Installing Java JDK 18 on Windows

Java 18 brings exciting new features to the world's most popular programming language. If you are a student, a professional, or just starting your coding journey, getting your environment set up correctly is the very first step. This guide makes the installation process of JDK 18 on Windows 10 or 11 fast and simple.

1. Download the JDK 18 Installer

Start by visiting the official Oracle website. Look for the Java SE 18 downloads section. Since we are on Windows, you will want to select the x64 Installer. This is an .exe file that makes the setup process much smoother than using compressed zip files.

2. Run the Installation Wizard

Once the download is complete, double-click the file to launch the wizard. Follow these quick steps:

  • Click Next on the welcome screen.
  • Note the installation path (usually C:\Program Files\Java\jdk-18).
  • Click Next and wait for the progress bar to finish.
  • Once done, click Close.

3. Set Up Environment Variables

This is the most important part! To run Java from any command prompt, your computer needs to know where it is located.

  • Search for "Edit the system environment variables" in Windows Search.
  • Click on Environment Variables.
  • Under "System variables," create a new one named JAVA_HOME and paste your JDK folder path.
  • Find the Path variable, click edit, and add %JAVA_HOME%\bin to the list.

4. Verify Your Installation

Now, let's make sure everything is working perfectly. Open a new Command Prompt (CMD) and type the following command:

java -version

If you see "java version 18" displayed, congratulations! You have successfully set up your development environment and are ready to start building amazing applications.

Master Amazon SQS Next:

Since you're setting up your dev environment, you might be interested in these Amazon SQS (Simple Queue Service) tutorials from my channel:

No comments:

Post a Comment

Tutorials