Java issue (nonexistent Java Runtime)

19

5

I'm currently having an issue with playing Minecraft. I played Minecraft perfectly before I had an issue with my computer. Now when I open the minecraft.exe file (or try to open Java itself from the start menu) it says there is a problem with Java:

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

I re-installed Java but it seems there is a problem with my windows installer:

"Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor."

I tried to reinstall the Windows Installation service however this says there is not enough space (even though I have about 12GB free on my hard drive). I'm not sure if this is the correct file I'm trying to install but I thought it was worth a shot.

Leon

Posted 2011-04-11T10:21:20.420

Reputation: 226

Answers

25

Here's what I did on Windows 7:

Open the registry editor (regedit.exe) using an administrator account.

Go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment

For each version under this path, verify if the paths for the JavaHome and RuntimeLib variables are correct. RuntimeLib should refer to an existent jvm.dll file, JavaHome should be the start of this path with the \bin\client\jvm.dll part removed.

If you have multiple versions in the registry and you do not have a corresponding java version on your disk for one of them, remove the superfluous registry entry.

If the correspondinig java version is at another location on your disk, update the paths. For each version of Java you have, you need to do this twice (once for the particular build you have (example 1.7.0_04) and once for the base version (example 1.7). Mine (but take care, I installed to a custom location) are:

  • JavaHome C:\java\jre
  • RuntimeLib C:\java\jre\7\bin\jvm.dll

I got the error because I moved the software to another directory after installation.

Catweazle

Posted 2011-04-11T10:21:20.420

Reputation: 376

4My experience: if a Java version is in the Registry but not no your hard drive, you need to delete the Registry entry for it. – William Leara – 2016-08-02T17:10:31.883

A perfectly working solution for me. – MSX – 2016-09-27T17:53:39.283

2@WilliamLeara's solution worked for me. I had Java jre1.8.0_65 and jre1.8.0_121 in registry, but on my hard drive I had only jre1.8.0_121 (jre1.8.0_65 also exists on my hard drive but with only a lib file inside. No bin, etc...). So I deleted jre1.8.0_65 from registry and it worked. – Alaa M. – 2017-01-25T07:34:21.063

1I had the same issue with DocFetcher, In my case it was Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit that had an invalid entry as i normally install full JDK. Don't forget this folder too! – Espinosa – 2017-04-02T18:48:17.077

There is an additional problem in some cases, where the Java startup logic looks spefically for keys like 1.8.0_XX under Java Runtime Environment. This does not account for updates with 3 or more digits. If all you have installed is 1.8u123, you can rename the key to anything that fits the pattern (leaving the contents that point to the correct paths). One way would be to change the 123 to its hex form (7B), so 1.8.0_7B. – Zastai – 2018-09-21T10:31:47.793

4

Try renaming the .exe to a .jar People are having this same issue and this seems to solve it.

Once you've tried that, remove every instance of Java you have and reinstall with a package from Java's website. Make sure it's the right architecture (32-64 bit). Try removing Java with the Windows Cleanup Utility, then reboot, the reinstall.

EDIT: Come to think of it, back when I ran windows a similar thing happened to me. Try upgrading to the latest version of Windows Installer. If you're already at the latest, try reinstalling.

n0pe

Posted 2011-04-11T10:21:20.420

Reputation: 14 506

I feel the problem may be deeper with Java as .jar files aren't even associated with Java anymore (it doesn't know what to open them with). Any ideas? – Leon – 2011-04-11T11:17:48.537

I just edited my answer, try that. If not, we'll keep looking. – n0pe – 2011-04-11T11:18:54.310

Trying to install the Windows Installer redist gives the error "Not enough storage is available to process this command". As for uninstalling Java via the Windows Cleanup Utility, the uninstall worked and I'm trying to reinstall Java now (just at the bit where it usually errors - we'll see). – Leon – 2011-04-11T11:26:49.453

Alright let's hope you don't encounter errors – n0pe – 2011-04-11T11:29:54.070

Unfortunately when trying to install Java, it thinks it already has it installed. I click reinstall but then it says "This action is only valid for products that are currently installed". It's really just smacking itself in the face. Any ideas? (Just restarted - still have the same problem) – Leon – 2011-04-11T11:34:01.323

Hmmm, my guess is a registry key saying Java is still installed when you've deleted everything Java on your computer. At least you don't get the error anymore. Just to make sure, Java doesn't show up in the installed application list? No more folder in the Program Folders? – n0pe – 2011-04-11T11:50:17.320

If you answered yes to everything above (chuckles), check this out http://raproducts.org/wordpress/software

– n0pe – 2011-04-11T11:52:42.170

1

My workstation is Win 7 64 bit.

Solution for me was to change all references of

C:\Program Files\Java\...

to

C:\Program Files (x86)\Java\...

in the registry path

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\

My actual installed path and registry entries did not match.

Morph Seven

Posted 2011-04-11T10:21:20.420

Reputation: 11