How to fix Javaw.exe error in Windows 10

In this tutorial, learn how to fix the error “A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available to run …” message when trying to open a Java IDE. This error often happens when the Java IDE doesn’t recognize the actual path of Java.exe. Don’t panic, this post is useful for you.

Note:

1. You will need an Oracle account to download the Java SE Development Kit.

2. If you have downloaded and installed the Java SE Development Kit previously on your computer, then you can go to step 3.

How to fix Java Runtime Environment Not Found at Bin javaw.exe in Windows 10

Step 1. Download Java SE Development Kit

1. First, download Java SE Development Kit 8 from this site.

2. Scroll down through the website and select on the appropriate JDK file according to your system specs (32-bit represents Windows x86 or 64-bit resembles Windows x64).

Step 2. Install the Java SE Development Kit 8

1. Once the file is downloaded, go to the folder that contains the “jdk-8u251-windows-x64.exe” file and double-click on the file to run the installer.

2. When the install window opens up, click on Next. Change the Installation folder if you’re not pleased with the default option.

3. Follow the on-screen directions to complete the installation.

4. When the installation process is complete, click on “Close” to close the installed.

Step 3. Now you have to set environment variables from Java. Here are the steps:

1. Go to your Java installation directory

If you didn’t change the path during installation, it’ll be something like C:\Program Files\Java\jdk1.8.0_251\

2. After that, double-click on the “bin” folder to access it. Inside bin folder, right-click on the address bar and then select “Copy address” to copy the folder location.

3. Now, click on Start menu and search for “Environment Variables” then click Edit the system environment variables.

4. Go to the “Advanced” tab, click on “Environment Variables“.

5. Here, click on “New…“.

6. Moving on, set the “Variable name:” as “Path“. In the “Variable value:” section, press Ctrl+V to paste the location of the bin folder you had copied earlier.

7. Click OK. Now, you can see the new variable in the list of System Variables.

8. In the System Properties window, click Apply > OK to save the changes.

9. Restart your system.

After restarting your computer try to open the Java IDE again on your computer. It will work without any error.

 

 

Comments are closed, but trackbacks and pingbacks are open.