How to Fix “Unable to Locate Java Runtime” Error
Afam has been a content writer with Guiding Tech Media since August 2023. However, his experience in tech writing dates back to 2018, when he worked as a freelance writer for Make Tech Easier. Over the years, he has grown a reputation for publishing quality guides, reviews, tips, and explainer articles. His work is featured on top websites, including Technical Ustad, Windows Report, and Next of Windows. He has training as a Microsoft Certified Professional and has covered more Microsoft-related guides on these platforms.
Basic Fixes:
Fix 1: Install or Re-Install Java Properly
If you’ve not installed Java or have installed it incorrectly, all applications that rely on it will return the error message: Java Runtime Environment not found. Before you advance to the solutions below, you should check the status of Java on the computer. Here’s how.
Step 1:Click the magnifying lens on the Taskbar, typeCommand Prompt, and click theRun as Administratoroption.
Step 2:Type the command below and hitEnterto check your Java status.
Step 3:Running the command will display the version of Java on your computer if installed correctly. If not, you may receive an error message.
Tip:You may follow these steps if youcan not open the Windows 11 Command Prompt.
Fix 2: Repair or Reinstall the Java Dependent Application
You should also investigate the possibility of a corrupt Java-dependent application. Some programs come with a repair option. While the repair steps may vary by program, generally, most apps follow the process outlined below.
Step 1:Open the search window on the Taskbar, type control, and click theUninstall a programoption.
Step 2:Select the app under theNamecolumn, then click any of these available options:Change,Uninstall/Change.
Step 3:Click theRepairbutton and follow any instructions to complete the process.
Alternatively, if repairing the dependent application does not work, you should consider reinstalling the application. Before reinstalling it, however, you must completely uninstall the application and ensure you reinstall from a freshly downloaded copy.
This way, you are guaranteed that any corruption that affected the older installation will not affect the new one.
Fix 3: Download and Install the Java Runtime Environment
After you run the Java -version command, if you discover Java is not present on your computer, you must download and install it. This will require visiting theofficial Java website. The steps below will walk you through the process.
Step 1:Visit the official website and click the greenDownloadbutton.
Step 3:Double-click the downloaded file to start the installation.
Step 4:Click theInstallbutton.
Step 5:Close the installer and verify the problem is fixed.
Fix 4: Allow Java Through Your Firewall
The Windows 11 firewall helps protect your computer by blocking threats, unwanted programs, and other malicious software. Some programs may ask for permission to pass through the firewall. If the firewall blocks Java, you will get the Java Runtime Environment is not found error. Here’s how you can fix the same.
Step 1:Click the magnifying lens on the Taskbar, typeallow, and clickAllow an app through Windows Firewall.
Step 2:Click theChange Settingsbutton andAllow another app.
Step 3:ClickBrowse, navigate the path below, and add your Java installation.
Step 4:Click theOKbutton.
Was this helpful?
Last updated on 21 August, 2024
Leave a ReplyCancel reply
Your email address will not be published.Required fields are marked*
Name*
Email*
Comment*
Δ
Read Next
The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.
More in Windows
How to Use Google Maps on Windows PC
4 Ways to Fix Unable to Rename Folders on Windows 11
JOIN THE NEWSLETTER
Get Guiding Tech articles delivered to your inbox.
© 2024 Guiding Tech Media. All Rights Reserved.