Java virtual machine launcher error opening registry key

I get this error when I try to do anything with Java in command prompt: Error opening registry key 'SoftwareJavaSoftJava Runtime Environment.3' Error: could not find Java.dll Error: could not find

I get this error when I try to do anything with Java in command prompt:

Error opening registry key 'SoftwareJavaSoftJava Runtime Environment.3'
Error: could not find Java.dll
Error: could not find Java 2 Runtime Environment

I did screw around with deleting Java directories and registry a few days ago. I restarted computer and java was still working fine, then i restarted it again today and now I get this error. I have tried uninstalling and reinstalling but that doesn’t seem to work. I have the latest java JRE installed and the path set in the environment variables. Anyone have any clue how to fix this?

Kevin Panko's user avatar

Kevin Panko

8,26919 gold badges51 silver badges61 bronze badges

asked Jun 15, 2011 at 17:52

gFu's user avatar

5

Make sure you remove any java.exe, javaw.exe and javaws.exe from your WindowsSystem32 folder and if you have an x64 system (Win 7 64 bits) also do the same under WindowsSysWOW64.

If you can’t find them at these locations, try deleting them from C:ProgramDataOracleJavajavapath.

A Jar of Clay's user avatar

answered Sep 15, 2011 at 3:48

Baha's user avatar

BahaBaha

2,3241 gold badge15 silver badges3 bronze badges

5

You will find a folder named «Oracle» on ProgramData folder in your windows installed drive. Remove the folder. Hope it will work.
In my case my install drive is C and my path is C:ProgramDataOracle

answered May 16, 2018 at 4:29

Shuvankar Paul's user avatar

4

I had a similar problem. I had installed JDK7 update 1 but couldn’t use it (probably because I found a JRE6 that I deleted after installing JDK7). Uninstalling JDK7 was impossible. The solution was to add the JRE registry entries by hand.

[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment]
"CurrentVersion"="1.7"

[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment1.7]
"JavaHome"="C:\Program Files\Java\jre7"
"RuntimeLib"="C:\Program Files\Java\jre7\bin\client\jvm.dll"

[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment1.7.0_01]
"JavaHome"="C:\Program Files\Java\jre7"
"RuntimeLib"="C:\Program Files\Java\jre7\bin\client\jvm.dll"

You’ll have to adjust the above to your own directories and version.

If this doesn’t help, there’s still JavaRa https://singularlabs.com/software/javara/ .

answered Oct 24, 2011 at 10:56

Tilman Hausherr's user avatar

Tilman HausherrTilman Hausherr

17.1k7 gold badges60 silver badges94 bronze badges

4

Delete these 3 files present in your local at path C:ProgramDataOracleJavajavapath

java.exe
javaw.exe
javaws.exe

This solved the issue for me :)

answered Sep 18, 2019 at 10:34

shikha singh's user avatar

shikha singhshikha singh

4881 gold badge5 silver badges10 bronze badges

Make sure you remove any java.exe, javaw.exe and javaws.exe from your system.

  • if you have an x32 system (Win XP 32 bits) WindowsSystem32 folder

  • if you have an x64 system (Win 7 64 bits) also do the same under WindowsSysWOW64 folder

Ram's user avatar

Ram

3,08410 gold badges39 silver badges56 bronze badges

answered Jan 30, 2015 at 18:04

user3740684's user avatar

1

On Windows 10 I had just installed the JDK, and got these errors when checking the version. I had to delete all executable files starting with java (i.e. java.exe, javaw.exe and javaws.exe) from C:ProgramDataOracleJavajavapath. And then, once deleted, re-run the JDK installer, restart my terminal program and java -v works.

answered Dec 13, 2018 at 19:54

joe_the_third's user avatar

2

There are 3 locations to check

  1. Registry HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment1.8.0_xxxJavaHome
  2. Java Control Panel- Java tab — View — Path
  3. Environment Variables — Path ($env:Path)

All 3 have to align (if you have multiple entires just remove the wrong ones) — thats all

Tobias Theel's user avatar

Tobias Theel

3,0182 gold badges27 silver badges45 bronze badges

answered Sep 19, 2018 at 15:51

Marcin Piaskowski's user avatar

I had the same:

Error opening registry key 'SoftwareJavaSoftJava Runtime Environment

Clearing WindowsSysWOW64 doesn’t help for Win7

In my case it installing JDK8 offline helped (from link)

Happypig375's user avatar

answered Nov 27, 2018 at 15:04

i-mir's user avatar

i-miri-mir

211 bronze badge

1

I would have tagged this as a comment but cant (dont have the rep) just wanted to thank Tilman. I was trying to get PDFsam (PDF Split and Merge) to work to no avail.

At launch it would produce an error stating that it could not find JRE 1.6.0. I Have both 32 and 64 bit versions and they check out fine at the java website in their respective browsers.

Tried uninstalling/reinstalling and rebooting repeatedly as well as using JavaRa. No such luck, still no go.

I looked in the registry after reading this post and there was no …SOFTWAREJavaSoft key so I added each with their respective string values pointing to my x86 version (PDFsam is a 32bit program). This got past the first problem but an error popped up about amd64 libraries suggesting the machine wanted to run the 64bit version. So I changed the paths to the 64bit JRE and PDFsam now works.

FYI — I got here by searching for Java registry keys after I was unable to launch javaw.exe from command prompt (even after adding the requisite paths to system path), making the aforementioned changes solved this as well.

answered May 29, 2014 at 16:23

Dizzixx's user avatar

DizzixxDizzixx

1983 silver badges12 bronze badges

I got this kind of error whe nI had JDK 1.7 before and I installed JAVA JDK 1.8 and pointed my JAVA_HOME and PATH variables to JAVA 1.8 version. When I try to find the java version I got this error. I restarted my machine, and it works . It seems to be we have to restart the machine after modifying the environment variables.

answered Aug 16, 2016 at 16:36

user213013's user avatar

0

In case a virus scanner (like McAfee) is running, try:

  1. Disable virus scanner
  2. Uninstall Java (via Control Panel / Programs and Features)
  3. Reinstall Java (from Java.com)
  4. Re-enable virus scanner

answered Nov 3, 2015 at 11:52

zut's user avatar

zutzut

8064 silver badges12 bronze badges

Uninstall Java (via Control Panel / Programs and Features)

Install Java JRE 7 —> OFFLINE <—
Configure JAVA_HOME and Path = %JAVA_HOME%/bin;%PATH%

Prafulla Kumar Sahu's user avatar

answered Nov 17, 2015 at 11:54

dapx's user avatar

dapxdapx

491 silver badge2 bronze badges

I have Windows 7. I got the same problem after installing: PyCharm.
I wasn’t satisfied with PyCharm, so I decided to use Eclipse instead. This is when I discovered that things went wrong with my JDK. I used to have Java.9.x. So I decided to uninstall it and get the newer version (at my time it was Java.11.x. The same problem persisted.
I followed most of the steps mentioned above in the post like:
— Removing all java*.exe files,
— removing Java related entries from the registry.
— Cleaning-up all unnecessary Java folders. However nothing helped. I still had something in the system referring to a broken Java pathname.

What really brought remedy is the following:
— Uninstalled what ever version of JDK I had at the moment.
— Re-Installed the last JDK version I had before the problem took place
— Properly uninstall that version.
— Install whatever latest version of SDK. ..

That’s it .. at this point everything returned to normal … Except that Java.11.xx did not fix the system path automatically, I had to do it manually.

answered Dec 28, 2018 at 20:36

Nowfal's user avatar

I followed multiple answers from above and got my issue resolved.

Issue:

Javac was on 13 from jdk but java was using 1.8 from jre so java threw incompatible runtime error

Fix:

  1. Under Control Panel -> Programs: I uninstalled 1.8 (named Java 8 runtime) and DID NOT touch the other one (named Java (TM) SE Development Kit 13)

  2. Deleted java.exe, javac.exe and javawc.exe files from:
    a. C:Windowssystem32
    b. C:WindowsSysWOW64
    c. C:ProgramDataOracleJavajavapath

  3. The environment variable JDK_HOME was pointing to 13 but JAVA_HOME was pointing to 1.8 so i pointed JAVA_HOME to also use 13 which was C:Program FilesJavajdk-13.0.1

  4. There was a Path variable under both User variables and system variables sections.
    For the one in user variables section, i added the string %JDK_HOME% — which translated automatically to the physical path.
    For the one under system variables, I deleted the path C:ProgramDataOracleJavajavapath and added C:Program FilesJavajdk-13.0.1bin

All good now! Thanks to all the people who answered, you rock!

answered Jul 19, 2020 at 8:35

Shree Harsha's user avatar

Make sure to delete java references from system32, SysWOW64, and delete javapath from ProgramDataOracleJava. It solves the issue

answered Jan 12, 2021 at 7:55

Ramesh Bathini's user avatar

If you have «C:ProgramDataOracleJavajavapath» in your PATH, just make sure that the java bin path entries are present before this entry in your PATH.

I was facing the exact same issue, and I just moved the java jdk/jre bin path entries up in the list, above the oracle entry and it resolved my issue.

answered Sep 11, 2021 at 12:22

Sarun's user avatar

SarunSarun

1417 bronze badges

I get this error when I try to do anything with Java in command prompt:

Error opening registry key 'SoftwareJavaSoftJava Runtime Environment.3'
Error: could not find Java.dll
Error: could not find Java 2 Runtime Environment

I did screw around with deleting Java directories and registry a few days ago. I restarted computer and java was still working fine, then i restarted it again today and now I get this error. I have tried uninstalling and reinstalling but that doesn’t seem to work. I have the latest java JRE installed and the path set in the environment variables. Anyone have any clue how to fix this?

Kevin Panko's user avatar

Kevin Panko

8,26919 gold badges51 silver badges61 bronze badges

asked Jun 15, 2011 at 17:52

gFu's user avatar

5

Make sure you remove any java.exe, javaw.exe and javaws.exe from your WindowsSystem32 folder and if you have an x64 system (Win 7 64 bits) also do the same under WindowsSysWOW64.

If you can’t find them at these locations, try deleting them from C:ProgramDataOracleJavajavapath.

A Jar of Clay's user avatar

answered Sep 15, 2011 at 3:48

Baha's user avatar

BahaBaha

2,3241 gold badge15 silver badges3 bronze badges

5

You will find a folder named «Oracle» on ProgramData folder in your windows installed drive. Remove the folder. Hope it will work.
In my case my install drive is C and my path is C:ProgramDataOracle

answered May 16, 2018 at 4:29

Shuvankar Paul's user avatar

4

I had a similar problem. I had installed JDK7 update 1 but couldn’t use it (probably because I found a JRE6 that I deleted after installing JDK7). Uninstalling JDK7 was impossible. The solution was to add the JRE registry entries by hand.

[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment]
"CurrentVersion"="1.7"

[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment1.7]
"JavaHome"="C:\Program Files\Java\jre7"
"RuntimeLib"="C:\Program Files\Java\jre7\bin\client\jvm.dll"

[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment1.7.0_01]
"JavaHome"="C:\Program Files\Java\jre7"
"RuntimeLib"="C:\Program Files\Java\jre7\bin\client\jvm.dll"

You’ll have to adjust the above to your own directories and version.

If this doesn’t help, there’s still JavaRa https://singularlabs.com/software/javara/ .

answered Oct 24, 2011 at 10:56

Tilman Hausherr's user avatar

Tilman HausherrTilman Hausherr

17.1k7 gold badges60 silver badges94 bronze badges

4

Delete these 3 files present in your local at path C:ProgramDataOracleJavajavapath

java.exe
javaw.exe
javaws.exe

This solved the issue for me :)

answered Sep 18, 2019 at 10:34

shikha singh's user avatar

shikha singhshikha singh

4881 gold badge5 silver badges10 bronze badges

Make sure you remove any java.exe, javaw.exe and javaws.exe from your system.

  • if you have an x32 system (Win XP 32 bits) WindowsSystem32 folder

  • if you have an x64 system (Win 7 64 bits) also do the same under WindowsSysWOW64 folder

Ram's user avatar

Ram

3,08410 gold badges39 silver badges56 bronze badges

answered Jan 30, 2015 at 18:04

user3740684's user avatar

1

On Windows 10 I had just installed the JDK, and got these errors when checking the version. I had to delete all executable files starting with java (i.e. java.exe, javaw.exe and javaws.exe) from C:ProgramDataOracleJavajavapath. And then, once deleted, re-run the JDK installer, restart my terminal program and java -v works.

answered Dec 13, 2018 at 19:54

joe_the_third's user avatar

2

There are 3 locations to check

  1. Registry HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment1.8.0_xxxJavaHome
  2. Java Control Panel- Java tab — View — Path
  3. Environment Variables — Path ($env:Path)

All 3 have to align (if you have multiple entires just remove the wrong ones) — thats all

Tobias Theel's user avatar

Tobias Theel

3,0182 gold badges27 silver badges45 bronze badges

answered Sep 19, 2018 at 15:51

Marcin Piaskowski's user avatar

I had the same:

Error opening registry key 'SoftwareJavaSoftJava Runtime Environment

Clearing WindowsSysWOW64 doesn’t help for Win7

In my case it installing JDK8 offline helped (from link)

Happypig375's user avatar

answered Nov 27, 2018 at 15:04

i-mir's user avatar

i-miri-mir

211 bronze badge

1

I would have tagged this as a comment but cant (dont have the rep) just wanted to thank Tilman. I was trying to get PDFsam (PDF Split and Merge) to work to no avail.

At launch it would produce an error stating that it could not find JRE 1.6.0. I Have both 32 and 64 bit versions and they check out fine at the java website in their respective browsers.

Tried uninstalling/reinstalling and rebooting repeatedly as well as using JavaRa. No such luck, still no go.

I looked in the registry after reading this post and there was no …SOFTWAREJavaSoft key so I added each with their respective string values pointing to my x86 version (PDFsam is a 32bit program). This got past the first problem but an error popped up about amd64 libraries suggesting the machine wanted to run the 64bit version. So I changed the paths to the 64bit JRE and PDFsam now works.

FYI — I got here by searching for Java registry keys after I was unable to launch javaw.exe from command prompt (even after adding the requisite paths to system path), making the aforementioned changes solved this as well.

answered May 29, 2014 at 16:23

Dizzixx's user avatar

DizzixxDizzixx

1983 silver badges12 bronze badges

I got this kind of error whe nI had JDK 1.7 before and I installed JAVA JDK 1.8 and pointed my JAVA_HOME and PATH variables to JAVA 1.8 version. When I try to find the java version I got this error. I restarted my machine, and it works . It seems to be we have to restart the machine after modifying the environment variables.

answered Aug 16, 2016 at 16:36

user213013's user avatar

0

In case a virus scanner (like McAfee) is running, try:

  1. Disable virus scanner
  2. Uninstall Java (via Control Panel / Programs and Features)
  3. Reinstall Java (from Java.com)
  4. Re-enable virus scanner

answered Nov 3, 2015 at 11:52

zut's user avatar

zutzut

8064 silver badges12 bronze badges

Uninstall Java (via Control Panel / Programs and Features)

Install Java JRE 7 —> OFFLINE <—
Configure JAVA_HOME and Path = %JAVA_HOME%/bin;%PATH%

Prafulla Kumar Sahu's user avatar

answered Nov 17, 2015 at 11:54

dapx's user avatar

dapxdapx

491 silver badge2 bronze badges

I have Windows 7. I got the same problem after installing: PyCharm.
I wasn’t satisfied with PyCharm, so I decided to use Eclipse instead. This is when I discovered that things went wrong with my JDK. I used to have Java.9.x. So I decided to uninstall it and get the newer version (at my time it was Java.11.x. The same problem persisted.
I followed most of the steps mentioned above in the post like:
— Removing all java*.exe files,
— removing Java related entries from the registry.
— Cleaning-up all unnecessary Java folders. However nothing helped. I still had something in the system referring to a broken Java pathname.

What really brought remedy is the following:
— Uninstalled what ever version of JDK I had at the moment.
— Re-Installed the last JDK version I had before the problem took place
— Properly uninstall that version.
— Install whatever latest version of SDK. ..

That’s it .. at this point everything returned to normal … Except that Java.11.xx did not fix the system path automatically, I had to do it manually.

answered Dec 28, 2018 at 20:36

Nowfal's user avatar

I followed multiple answers from above and got my issue resolved.

Issue:

Javac was on 13 from jdk but java was using 1.8 from jre so java threw incompatible runtime error

Fix:

  1. Under Control Panel -> Programs: I uninstalled 1.8 (named Java 8 runtime) and DID NOT touch the other one (named Java (TM) SE Development Kit 13)

  2. Deleted java.exe, javac.exe and javawc.exe files from:
    a. C:Windowssystem32
    b. C:WindowsSysWOW64
    c. C:ProgramDataOracleJavajavapath

  3. The environment variable JDK_HOME was pointing to 13 but JAVA_HOME was pointing to 1.8 so i pointed JAVA_HOME to also use 13 which was C:Program FilesJavajdk-13.0.1

  4. There was a Path variable under both User variables and system variables sections.
    For the one in user variables section, i added the string %JDK_HOME% — which translated automatically to the physical path.
    For the one under system variables, I deleted the path C:ProgramDataOracleJavajavapath and added C:Program FilesJavajdk-13.0.1bin

All good now! Thanks to all the people who answered, you rock!

answered Jul 19, 2020 at 8:35

Shree Harsha's user avatar

Make sure to delete java references from system32, SysWOW64, and delete javapath from ProgramDataOracleJava. It solves the issue

answered Jan 12, 2021 at 7:55

Ramesh Bathini's user avatar

If you have «C:ProgramDataOracleJavajavapath» in your PATH, just make sure that the java bin path entries are present before this entry in your PATH.

I was facing the exact same issue, and I just moved the java jdk/jre bin path entries up in the list, above the oracle entry and it resolved my issue.

answered Sep 11, 2021 at 12:22

Sarun's user avatar

SarunSarun

1417 bronze badges

The virtual machine or processor inside your computer that provides an environment for all the Java programs to run on your computer is the Java Virtual Machine. It is a set of specifications of an abstract machine that loads the file containing the programming, interprets it and also helps it being executed it.

Thus the JVM takes the byte code of the program, which is stored in a ‘.class.’ Format and converts it into the operating system specific code, which the machine can read and hence can be run on your computer. So without the proper functioning of this virtual machine on our computers, the many Java-based applications will not be running on our computers!

But that is precisely what happens very often (while booting the computer or opening a java based application) and we get an error called the Java Virtual Machine Launcher Error. In this article, we will be talking about the standard Java Virtual Machine Launcher errors, the kind of error messages that will come up when you are having a particular problem and how to go about solving these problems.

See also: What Is Server Virtualization | How It Works And Its Benefits!

Contents

  • 1 4 Solutions to Solve Java Virtual Machine Launcher Error
    • 1.1 Remove Malware on your computer
    • 1.2 Uninstalling Java and re-installing
    • 1.3 Clearing Computer Memory
    • 1.4 Miscellaneous Fix
  • 2 Conclusion

4 Solutions to Solve Java Virtual Machine Launcher Error

Remove Malware on your computer

If the error message is shown is this- “Error Message: Java Virtual Machine Launcher could not find the main class: the program will now exit” then the Microsoft Malicious Software Removal tool, which is an inbuilt utility tool in Microsoft can be used to remove any Malware from your computer.

To access this tool, go to the Search Windows option in your Start menu and type “mrt” and press Enter. In The tool, choose the option for “Full Scan” and follow the on-screen wizard to start the scan. The scan may take a few moments to complete and in the process will also remove all the Spyware, Adware and Malware on your computer. Reboot your computer once the scan is complete.

Now using the System Configuration tool on your computer the rest of the problem. To launch this, you need to type “msconfig” in the Search Windows option that you can find in the Start Menu. In this utility tool, click the “Startup” tab, which opens a long list. Scan the list to find the following- “WJView.exe” and “javaw.exe.” and uncheck these options.

See also: – [Solved] Failed To Enumerate Objects in the Container

Uninstalling Java and re-installing

As the heading suggests, this solution involves uninstalling the problematic Java Virtual Machine launcher from your computer and then installing it afresh. This is a quite primitive but effective solution to Java Virtual Machine launching problems when the error message shows- “Error Message: Error opening registry key.”

Before uninstallation, open the Windowssystem32 and delete the following files- ‘javaws.exe’, ‘java.exe’, ‘javaw.exe’ and any other Java executable file that you can find. For uninstalling JVM, open the ‘Programs and Features’ tab in the Control Panel of your desktop. Scroll down the list to find Java runtime and uninstall it.

For re-installing Java runtime, visit java.com: Java + You and download the most compatible version. Choosing the correct version is very important as an incompatible version of Java Runtime is one of the biggest reasons for the error.

Clearing Computer Memory

One of the most frequent reasons for the Java Virtual Machine launcher problems is insufficient memory in your COMPUTER. This insufficiency may be in your overall computer memory or in the amount of memory you allocate to Java Runtime. To solve the former, just get rid of all those programs that you don’t use, and you will have a clutter-free (and hopefully a problem-less) computer.

When Java has allocates insufficient memory space, then the error that comes is- “Error Message: Could not create the Java Virtual Machine.” This is one of the most common Java Virtual Machine Launcher errors that you encounter during playing games on Java like Minecraft.

To solve the memory space allocated to Java, go to the Systems options in Control Panel and open the Advanced options window. Here, clicking on the Environment Variables option, you will find a ‘System Variables’ option. Click on the ‘New’ variable option and put the name of the variable as ‘_JAVA_OPTIONS’ with a value of ‘Xmx512M’. (Xmx refers to the maximum space and Xms refer to the minimum space that you can allocate to Java)

See also: – Top 4 Best Virtual Machine Applications for Windows 10 – TechWhoop

Miscellaneous Fix

This solution is for the Java Virtual Machine Launcher error prompt- “Error Message: Unable to access jarfile.” Which comes when trying to open some java based applications. Start by opening the ‘Default Programs’ tab from the Start Menu. Scan the list to find an option called- ‘Associate a file type or protocol with a program’ and select it.

There will be an extension ‘.jar’- Click on this and change the default program to ‘JAVA virtual machine launcher’. Clicking on ‘Close’ will save the changes. Try reopening the program that was earlier causing the problem.

Conclusion

Hopefully, by following this article, you will solve the Java Virtual Machine Launcher error, and all your Java-based applications and games will be up and running smoothly again. There is also this hack if you want to assess your Java skills! All suggestions regarding alternative methods to resolve the launcher error are welcome.

When trying to open a Java .jar file through the command prompt, such as using the command “Java -Jar xxxx.jar”, you might encounter the following error message:

Error: opening registry key ‘SoftwareJavaSoftJRE’

Error: could not find java.dll

Error: Could not find Java SE Runtime Environment.

This could be due to several factors, including but not limited to:

  • Corrupted registry
  • Missing Java path in your Environment Variables
  • Java installation folder being moved

For example, we encountered this issue when updating Java SE to the latest version – we likely previously had a 32-bit Java installation, and when running the 64-bit Java installer, our Java path changed.

Error output when trying to run Java commands in Command Prompt.

Luckily, this is fairly easy to fix, as it just requires addressing one of the above problems with the appropriate solution. Follow our steps below to get your Java commands via command prompt working again, and leave a comment in the comments section if you encounter any further issues (or know of a better solution).

  1. Delete all previous versions of Java (using “Programs and Features” uninstall process). If java folder is remains in “C:/Program Files/…”, please delete it.
  2. Clean up your registry (delete your java key):
  3. Go to Start and then Run
  4. Type in ‘regedit’ in the edit field
  5. Go to HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Uninstall
  6. Under this Uninstall folder you will find many registry entries within curly brackets.
    Regedit uninstall pathway.
  7. Click on Edit tab and then Find
  8. Note: Highlight Uninstall folder before performing search for particular registry.
  9. Enter version string as value to find corresponding registry entry to be deleted.
  10. Once you find registry key, highlight that key and then Right click on it and choose Delete
  11. Confirm the delete and click Yes

Steps for finding registry keys for any version of Java 7

Follow format 7.0.xxx
where xxx can be 100, 120, 130, 140 and so on.
for example:

  • Type 7.0.100 in search field, finds registry key for Java7 update 10
  • Type 7.0.120 in search field, finds registry key for Java7 update 12
  • Type 7.0.180 in search field, finds registry key for Java7 update 18

Steps for finding registry keys for any version of Java 6

Follow format 6.0.xxx
where xxx can be 100, 120, 130, 140 and so on.
for example:

  • Type 6.0.100 in search field, finds registry key for Java6 update 10
  • Type 6.0.120 in search field, finds registry key for Java6 update 12
  • Type 6.0.180 in search field, finds registry key for Java6 update 18

Steps for finding registry keys for any version of Java 1.5

Follow format 1.5.0.xxx
where xxx can be 100, 120, 130, 140 and so on.
for example:

  • Type 1.5.0.100 in search field, finds registry key for jre1.5.0_01
  • Type 1.5.0.120 in search field, finds registry key for jre1.5.0_12
  • Type 1.5.0.180 in search field, finds registry key for jre1.5.0_18
  • Steps for finding registry keys for any version of Java 1.4

Follow format 1.4.2_xxx
where xxx can be 01, 12, 13, 14 and so on.
for example:

  • Type 1.4.2_01 in search field, finds registry key for jre1.4.0_01
  • Type 1.4.2_12 in search field, finds registry key for jre1.4.0_12
  • Type 1.4.2_18 in search field, finds registry key for jre1.4.0_18

Reinstall Java and set system variable JAVA_HOME to your JRE (or JDK) path.

Eg:

JAVA_HOME - C:Program FilesJavajdk1.7.0_71

Path - C:Program FilesJavajdk1.7.0_71bin

You can check if this was a successful solution with the following commands

echo %JAVA_HOME%

java -version

Manually open command window to Java pathway.As a side note, you can also launch a command prompt directly from within the Java folder – navigate to your C:Program FilesJavabin folder (or wherever your Java is installed), hold Shift + Right click inside the window, and click “Open a command window here”.

Photo of Kamil Anwar

Kamil Anwar

Kamil is a certified MCITP, CCNA (W), CCNA (S) and a former British Computer Society Member with over 9 years of experience Configuring, Deploying and Managing Switches, Firewalls and Domain Controllers also an old-school still active on FreeNode.

Понравилась статья? Поделить с друзьями:
  • Java virtual machine launcher error invalid or corrupt jarfile что делать
  • Java virtual machine launcher error could not open jvm cfg как исправить
  • Java virtual machine launcher error could not find java dll
  • Java virtual machine launcher error could not create the java virtual machine
  • Java virtual machine launcher error a jni ошибка как исправить на windows 10