Home> Java> JavaBase> body text

What to do if the java -version command reports an error

coldplay.xixi
Release: 2020-10-20 10:19:50
Original
4205 people have browsed it

Solution to the error reported by the java -version command: First open the [Windows\System32] and [Windows\SysWOW64] folders in the C drive; then find [java.exe], [javaw.exe], [javaws .exe] file can be deleted.

What to do if the java -version command reports an error

Solution to the error reported by the java -version command:

Problem description:

Install jdk After entering "java -version" in the dos interface and pressing Enter, the following error is reported:

Error opening registry key'software\Javasoft\Java Runtime Environment' Error: could not find java.dll Error: could not find Java 2 Runtime Environment'
Copy after login

Solution:

Change the Windows\System32 and Windows\SysWOW64 folders in the C drive Just delete thejava.exe,javaw.exe,javaws.exefiles.

PS: Delete the java.exe and javaw.exe files under Windows\System32 in the win7 environment, and the problem will be solved.

Related free learning recommendations:java basic tutorial

The above is the detailed content of What to do if the java -version command reports an error. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!