development

Java 오류 열기 레지스트리 키

big-blog 2020. 9. 17. 08:26
반응형

Java 오류 열기 레지스트리 키


명령 프롬프트에서 Java로 작업을 시도 할 때이 오류가 발생합니다.

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

며칠 전에 Java 디렉토리와 레지스트리를 삭제하는 데 어려움을 겪었습니다. 컴퓨터를 다시 시작했는데 Java가 여전히 잘 작동 한 다음 오늘 다시 시작했는데 이제이 오류가 발생합니다. 제거 및 재설치를 시도했지만 작동하지 않는 것 같습니다. 최신 Java JRE가 설치되어 있고 환경 변수에 경로가 설정되어 있습니다. 누구든지이 문제를 해결하는 방법에 대한 단서가 있습니까?


확실히 당신은 어떤을 제거하는 것 java.exe, javaw.exe그리고 javaws.exe당신의 Windows\System32폴더와 당신이 x64 시스템 (윈 7 64 비트)이있는 경우도 같은 아래 작업을 수행 Windows\SysWOW64.


Windows가 설치된 드라이브의 ProgramData 폴더에 " Oracle " 이라는 폴더가 있습니다. 폴더를 제거하십시오. 그것이 효과가 있기를 바랍니다. 제 경우에는 설치 드라이브가 C이고 경로는 C : \ ProgramData \ Oracle입니다.


비슷한 문제가있었습니다. JDK7 업데이트 1을 설치했지만 사용할 수 없습니다 (아마도 JDK7을 설치 한 후 삭제 한 JRE6을 찾았 기 때문일 것입니다). JDK7 제거가 불가능했습니다. 해결책은 JRE 레지스트리 항목을 직접 추가하는 것이 었습니다.

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.7"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7]
"JavaHome"="C:\\Program Files\\Java\\jre7"
"RuntimeLib"="C:\\Program Files\\Java\\jre7\\bin\\client\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7.0_01]
"JavaHome"="C:\\Program Files\\Java\\jre7"
"RuntimeLib"="C:\\Program Files\\Java\\jre7\\bin\\client\\jvm.dll"

위의 내용을 자신의 디렉토리와 버전으로 조정해야합니다.

이것이 도움이되지 않는다면 여전히 JavaRa http://raproducts.org/wordpress/가 있습니다 .


시스템에서 java.exe, javaw.exe 및 javaws.exe를 제거했는지 확인하십시오.

  • x32 시스템 (Win XP 32 비트) Windows \ System32 폴더가있는 경우

  • x64 시스템 (Win 7 64 비트)이있는 경우 Windows \ SysWOW64 폴더에서도 동일한 작업을 수행합니다.


Windows 10에서 방금 JDK를 설치했으며 버전을 확인할 때 이러한 오류가 발생했습니다. 에서 java(즉 java.exe, javaw.exejavaws.exe)로 시작하는 모든 실행 파일을 삭제해야 했습니다 C:\ProgramData\Oracle\Java\javapath. 그런 다음 삭제되면 JDK 설치 프로그램을 다시 실행하고 터미널 프로그램을 다시 시작하면 java -v작동합니다.


확인할 위치는 3 곳입니다.

  1. 레지스트리 HKEY_LOCAL_MACHINE \ SOFTWARE \ JavaSoft \ Java Runtime Environment \ 1.8.0_xxx \ JavaHome
  2. Java 제어판-Java 탭-보기-경로
  3. 환경 변수-경로 ($ env : Path)

3 개 모두 정렬해야합니다 (여러 개의 전체가있는 경우 잘못된 항목을 제거하십시오).


나는 이것을 주석으로 태그했지만 Tilman에게 감사하고 싶었습니다. PDFsam (PDF 분할 및 병합)을 사용하지 않으려 고했습니다.

시작시 JRE 1.6.0을 찾을 수 없다는 오류가 발생합니다. 32 비트와 64 비트 버전을 모두 가지고 있으며 각 브라우저의 Java 웹 사이트에서 잘 확인합니다.

JavaRa를 사용하는 것뿐만 아니라 제거 / 재설치 및 재부팅을 반복적으로 시도했습니다. 그런 행운은 없지만 여전히 갈 수 없습니다.

이 게시물을 읽은 후 레지스트리를 살펴 보았는데 ... \ SOFTWARE \ JavaSoft \ 키가 없었기 때문에 x86 버전을 가리키는 각 문자열 값을 추가했습니다 (PDFsam은 32 비트 프로그램입니다). 이것은 첫 번째 문제를 지나쳤지만 amd64 라이브러리에 대한 오류가 발생하여 시스템이 64 비트 버전을 실행하기를 원한다고 제안했습니다. 그래서 64 비트 JRE의 경로를 변경했고 이제 PDFsam이 작동합니다.

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.


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.


I had the same:

Error opening registry key 'Software\JavaSoft\Java Runtime Environment

Clearing Windows\SysWOW64 doesn't help for Win7

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


Delete these 3 files present in your local at path C:\ProgramData\Oracle\Java\javapath

java.exe
javaw.exe
javaws.exe

This solved the issue for me :)


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

Uninstall Java (via Control Panel / Programs and Features)

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


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.

참고URL : https://stackoverflow.com/questions/6362037/java-error-opening-registry-key

반응형