Java runtime environment is missing or corrupted

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

«This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted» when starting IDE #10374

«This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted» when starting IDE #10374

Comments

Hello.
I have the problem with starting Zipped Arduino program.

I wanted to download one of old versions arduino-1.6.5-r5-windows on my windows 10 Home edition x64. OK I unzipped folder. So when I open arduino.exe application in unzipped folder and after I get error message from Arduino, which says:

This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.

After I press OK button, message goes away, but app does not appear at all.

I thought I don’t have java on my new PC. However, the problem is still present.
OK. I deleted zipped version and tried to install via Windows Installer. However, it has NSIS Error which says : Error launching installer. So I had to delete installer file too.

I tried all the same with version ARDUINO 1.8.12 and the same steps had failed too. so I got to delete folders and installer file too again.

Читайте также:  Хорошая литература по php

I even tried to bring version of arduino-1.6.5-r5-windows zipped version from my laptop to PC on usb stick. Same error. So unfortunately got to delete zipped and unzipped folders.

After that I went to Microsoft Store. I found it, downloaded. The version is ARDUINO 1.8.12. It opens and shows all functions that should be. However, I got a problem with adding up zipped library which I downloaded from www.OSEPP.com official website.

I wrote about my problem yesterday in Arduino forum, but no answer yet.

Please help. Could anyone tell which Windows version is OK and which version of Java is good to work with Arduino application?

WindowsRegular Zipped version problem 1
WindowsInstaller problem 2
Arduino from Windows Store does not manualy add zipped library from oficial website OSEPP problem 3

The text was updated successfully, but these errors were encountered:

Источник

Fix: Registry refers to a nonexistent Java Runtime – Launch4j

Some users report getting the “registry refers to a nonexistent Java Runtime Environment” error when trying to open certain application executables. Most affected users report that this issue started to occur abruptly ( they where previously able to run the same executable without issues).

The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted. The system cannot find the path specified

What is causing the “registry refers to a nonexistent Java Runtime Environment” error

We investigated the issue by trying to replicate the issue and looking at various user reports. This particular error message is an indicator that you have remnants from an old Java installation in your Registry editor.

Based on what we found, there are several common scenarios that will lead to the apparition of this issue:

  • The Registry contains entries that don’t lead to the actual Java path – This typically occurs if you move the software to a different directory (manually) after the initial installation. The issue can be rectified by manually removing the registry entries that don’t correspond manually.
  • Incomplete or corrupted Java Installation – Several users have managed to resolve this particular issue by uninstalling Java and then re-installing the JDK. User speculation suggests that a corrupted file or glitch might have caused this.

If you’re currently struggling to resolve this particular issue, this article will provide you with a collection of verified troubleshooting steps. Below you have several methods that other users in a similar situation have successfully used to resolve the issue.

For the best results, follow the methods below in order until you encounter a fix that resolves the problem in your particular scenario. Let’s begin!

Method 1: Removing inexistent registry entries for JavaHome and RuntimeLib

Several users encountering the same issue have managed to get the issue resolved by removing those JavaHome and RuntimeLib registry entries that don’t refer to an existent path.

Читайте также:  Python build docker image

Every JavaHome variable should refer to a path similar to \bin\client\jvm.dll while each RuntimeLib should refer to an existent jvm.dll file. But because this issue occurs, you might find one or multiple variables that do not have the corresponding path or file.

This might happen if you recently removed the software to another directory after you installed it. If you manage to find any registry variables, you’ll need them to remove them manually.

This procedure will require some manual work and a small amount of technical expertize, but it might allow you to resolve the issue without having to re-install the whole Java Runtime Environment. If you are prepared to go through with it, we have prepared a step by step guide through the whole thing. Here’s what you need to do:

Run dialog: regedit

  1. Press Windows key + R to open up a Run dialog box. Then, type “regedit” and press Enter to open up the Registry Editor. When prompted by the UAC (User Account Control), click Yes at the prompt.
  2. Inside the Registry Editor, use the left pane to navigate to the following location:
Computer \ HKEY_LOCAL_MACHINE \ SOFTWARE \ JavaSoft \ Java Runtime Environment
  • Once you get there, select the first Java version located in the Java Runtime Environment folder and move over to the right pane.
  • In the right pane, double-click on JavaHome and copy the entire Valuedata path to your clipboard.Copying the JavaHome path from registry Editor
  • Open-File Explorer and paste the location you’ve previously copied in the navigation bar. If the location leads somewhere, it means that the registry value has a corresponding path. If it doesn’t lead you anywhere, it means that the registry refers to a non-existent Java installation and it should be deleted. Verifying registry value for the corresponding pathNote: If the Value data path dosen’t lead you anywhere, right-click on JavaHome and click Delete to get rid of the registry entry. Deleting the Registry entry with a non-corresponding installation path
  • Once JavaHome has been taken cared off, double-click on RuntimeLib and copy the Value data path in your clipboard.Copy the Value data of RuntimeLib to the clipboard
  • Same as before, open a File Explorer window and past the path you previously copied in the navigation bar. But this time, remove the last part “jvm.dll” before pressing Enter. Verifying if the Runtimelib has a corresponding pathNote: If you find a corresponding path, it means that the RuntimeLib registry value is functioning correctly. In the event that you get a message saying that Windows is unable to find the path, the registry value refers to a non-existent Java installation and needs to be removed. In this case, right-click on RuntimeLib and choose Delete to get rid of the value. Example of a non-existent registry path
  • Once the first Java Runtime Environment version has been dealt with, repeat steps 4 to 7 with every Java version that you have left under Java Runtime Environment.Repeating the same procedure with the remaining Java versions
  • Once all registry entries have been verified and addressed, close Registry Editor and restart your machine and see if the error has been resolved at the next startup.
  • Читайте также:  Convert string to html react

    If this method was not successful or you’re simply looking for a more simple fix, move down to the next method below.

    Method 2: Uninstalling Java and installing the Java JDK

    If you’re encountering this issue when trying to launch Minecraft or a similar application that relies on the JDK, you might be able to resolve the issue by uninstalling the whole Java environment and then re-installing the JDK (Java Development Kit).

    Here’s a quick guide on how to do this:

    1. Press Windows key + R to open up a Run dialog box. Then, type “appwiz.cpl” and press Enter to open up Programs and Features.Run dialog: appwiz.cpl
    2. Inside Programs and Features, click on the Publisher column, then scroll down to the entries published by Oracle Corporation.
    3. Next, proceed to uninstall every Java installation (or update) by right-clicking on each entry and clicking Uninstall. Then, follow the on-screen prompts to complete the uninstallation with each entry.Uninstalling every Java instalation
    4. Once you uninstall the Java environment completely, restart your computer.
    5. At the next startup, visit this link (here) and click on on the Download button.Click on the JDK download button
    6. In the next screen, scroll down to Java SE Development Kit and click the toggle associated with Accept Licence Agreement. Then, click on the executable download link associated with Windows.Downloading the JDK installer
    7. Open the JDK installer and follow the on-screen prompts to install the JDK environment on your PC. Restart your computer if not automatically prompted to do so when the process is complete.
    8. At the next startup, you should be able to start the application without encountering the “registry refers to a nonexistent Java Runtime Environment” error.

    Источник

    Оцените статью