1、 Problems arising
After the JDK is reinstalled, use Java – version to view it on the command line, and an error is reported Error:opening registry key ‘Software/JavaSoft/JRE’
The details are shown in the figure below:
Reason: the previous version of JDK was not unloaded completely
II. Solutions and steps
Step 1: uninstall the installed JDK (in the control panel)
(1) Windows + R, enter CMD, then enter control in the command line, press enter to open the control panel
(2) Click “uninstall program” in the control panel
(3) Find the JDK you installed, right-click it and click uninstall
Step 2: delete all javasoft files and their subdirectories in the registry
(1) Windows + R, enter regedit, and then click Yes to open the registry
(2) In the registry, press Ctrl + F to start the search function, enter javasoft in the search box, as shown in the figure below, and then click “find next”
Waiting to find
After the search is completed, it will be highlighted in the tree menu on the left (if it is not found, it will be ignored)
(3) Select the javasoft file, right-click, select the “delete” option in the pop-up menu, and click “yes” in the delete confirmation box
Step 3:
Add the java.exe , javaw.exe And javaws.exe The document was deleted
(you can search and delete it. If the file doesn’t exist, you don’t need to worry about it.)
Step 4: test whether JDK is completely unloaded successfully
Windows + R key, enter CMD, enter Java in the command line, press enter key, as shown in the figure below, indicating that JDK has been completely unloaded successfully
3、 Re install JDK
JDK installation tutorial: JDK download installation and environment configuration
After installing JDK and configuring environment variables
Windows + R key, enter CMD, enter Java – version in the command line, the JDK version information as shown in the figure below will appear, indicating that the JDK installation and configuration is successful
Read More:
- Error: opening registry key ‘Software\JavaSoft\Java Runtime Environment’
- Eclipse report error Error:opening registry key ‘Software/JavaSoft/JRE’
- Java:Error:Open registry key software \ JavaSoft \ Java Runtime Environment Problems
- Registry key Error: Java version has value ‘1.8‘, but ‘1.7‘ is required
- One of the methods to solve registry error while deleting key
- Wrong installation of registry to registry
- How to uninstall the software for apple / Mac? What if the software can’t be unloaded?
- nvidia-settings: ERROR: nvidia-settings could not find the registry key file
- Command failed: NPM install — loglevel error — registry= https://registry.npm.taobao.org
- The problem of MAC switching JDK version and RN Android JDK version leads to compilation failure. Solve it
- A simple method of generating secret key by GIT and configuring SSH public key
- How to delete the residual software files on the computer?
- Solution to prompt resource error when opening DAZ studio
- Solve the problem that TeamViewer software prompts that the trial period has expired and cannot be operated remotely
- Uninstall Windows computer software, so that the uninstall is clean
- (transfer) using Wireshark package capture software to prompt the NPF driver isn’t running solution
- Uninstall JDK and run Java – version with error
- [error record] invalid gradle JDK configuration found
- idea Error:java: JDK isn‘t specified for module ‘XXXX‘
- How to delete software completely on MAC