简体   繁体   English

安装 elki 时打开注册表项“Software\\JavaSoft\\JRE”时出错

[英]Error opening registry key ‘Software\JavaSoft\JRE’ while installing elki

I am trying to download ELKI.我正在尝试下载 ELKI。 So as per the readme file I run the elki.bat( I am using windows 10 ).因此,根据自述文件,我运行 elki.bat(我使用的是 windows 10)。 But I get the following java related errors :但我收到以下与 Java 相关的错误:

Error: opening registry key 'Software\\JavaSoft\\JRE'错误:打开注册表项“Software\\JavaSoft\\JRE”

Error: could not find java.dll错误:找不到 java.dll

Error: Could not find Java SE Runtime Environment.错误:找不到 Java SE 运行时环境。

  • I have searched all the sources that address this problem.我已经搜索了解决这个问题的所有来源。
  • I uninstalled the previous version and reinstalled JDK ( I currently have jdk 11.0.1 installed ).我卸载了以前的版本并重新安装了 JDK(我目前安装了 jdk 11.0.1)。 The "java -version" command to check the version runs just fine.检查版本的“java -version”命令运行得很好。
  • I have set the java path and classpath.我已经设置了java路径和类路径。

The README file says that the jar files from the elki and dependency folder must be included in the path. README 文件说 elki 和依赖文件夹中的 jar 文件必须包含在路径中。 I've done that as well, but the error persists.我也这样做了,但错误仍然存​​在。

Please help!请帮忙!

java 11 error: opening registry key 'software\\javasoft\\java runtime environment' java 11 错误:打开注册表项“software\\javasoft\\java 运行时环境”

I started a training program on LinkedIn on 2/5/19.我于 2019 年 2 月 5 日在 LinkedIn 上开始了一项培训计划。 It required me to install the new Java JDK 11.0.2 version.它要求我安装新的 Java JDK 11.0.2 版本。 After installing the new Java JDK 11 it wasn't showing up in MS DOS.安装新的 Java JDK 11 后,它没有出现在 MS DOS 中。 When I typed in java version it would show the old java 10 version.当我输入 java 版本时,它会显示旧的 java 10 版本。 I fixed that problem by removing all old versions.我通过删除所有旧版本解决了这个问题。

(1) uninstall all Java versions, (2) run "java -version" to make sure you really removed all, (3) reboot, Windows needs this to reset some system variables, (4) reinstall the Java version(s) you intend to use (5) reboot once more, in case Java installation changed the system variables once more. (1) 卸载所有 Java 版本,(2) 运行“java -version”以确保您真的删除了所有版本,(3) 重新启动,Windows 需要它来重置一些系统变量,(4) 重新安装您的 Java 版本打算再次使用(5)reboot,以防Java安装再次更改系统变量。

Thanks: Error opening registry key 'Software\\JavaSoft\\JRE' while installing elki谢谢: 安装 elki 时打开注册表项“Software\\JavaSoft\\JRE”时出错

However, a new problem started.然而,新的问题开始了。 I received an error message:我收到一条错误消息:

Error: opening registry key 'Software\\JavaSoft\\Java Runtime Environment'错误:打开注册表项“Software\\JavaSoft\\Java 运行时环境”

Error: could not find java.dll错误:找不到 java.dll

Error: Could not find Java SE Runtime Environment.错误:找不到 Java SE 运行时环境。

I checked my path in Control Panel\\All Control Panel Items\\System\\我在 Control Panel\\All Control Panel Items\\System\\ 中检查了我的路径

Advanced system settings > Advanced > Environment Variables高级系统设置 > 高级 > 环境变量

Set PATH and JAVA HOME with: C:\\Program Files\\Java\\jdk-11.0.2\\bin使用以下命令设置 PATH 和 JAVA HOME:C:\\Program Files\\Java\\jdk-11.0.2\\bin

Edit System Variable编辑系统变量

New新的

C:\\Program Files\\Java\\jdk-11.0.2\\bin;C:\\Program Files (x86)\\HP SimplePass\\x64;C:\\Program Files (x86)\\HP SimplePass\\;…… C:\\Program Files\\Java\\jdk-11.0.2\\bin;C:\\Program Files (x86)\\HP SimplePass\\x64;C:\\Program Files (x86)\\HP SimplePass\\;……

remove all others删除所有其他人

Still was having the problem until I did this:在我这样做之前仍然有问题:

FIXED ISSUE:固定问题:

Windows > Start > cmd > Windows > 开始 > cmd >

I used this first one:我使用了第一个:

C:> for %i in (javac.exe) do @echo.   %~$PATH:i

or C:> where java或 C:> where java

It return 'C:\\ProgramData\\Oracle\\Java\\javapath' folder which contain:它返回“C:\\ProgramData\\Oracle\\Java\\javapath”文件夹,其中包含:

MUST REMOVE:必须移除:

java.exe
javaw.exe
javaws.exe

Browse to this folder with Windows file explorer and remove everything (three files above).使用 Windows 文件资源管理器浏览到此文件夹并删除所有内容(以上三个文件)。

Close and reopen cmd (Windows > Start > cmd >)关闭并重新打开 cmd(Windows > 开始 > cmd >)

C:> java -version

Should now return:现在应该返回:

openjdk version "11.0.2" 2019-01-15 openjdk 版本“11.0.2” 2019-01-15

OpenJDK Runtime Environment 18.9 (build 11.0.2+9) OpenJDK 运行时环境 18.9(构建 11.0.2+9)

OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode) OpenJDK 64 位服务器 VM 18.9(构建 11.0.2+9,混合模式)

or something similar depending on which java release package you've downloaded...或类似的东西,具体取决于您下载的 Java 发行包...

It works!有用!

https://superuser.com/questions/1382158/on-windows-why-java-version-return-error-opening-registry-key-software-javas https://superuser.com/questions/1382158/on-windows-why-java-version-return-error-opening-registry-key-software-javas

Thank you to these guys that help me with this issue!!感谢这些帮助我解决这个问题的人!! Wanted to share this with others so they wouldn't spend hours trying to fix this issue!想与其他人分享这个,这样他们就不会花几个小时来解决这个问题!

ELKI doesn't know what the Windows registry is. ELKI 不知道 Windows 注册表是什么。

The error supposedly originates from Java - so there is something broken in your Windows Java installation.该错误可能源于 Java - 因此您的 Windows Java 安装中存在某些问题。 Others have reported the same error when running java -version .其他人在运行java -version时报告了同样的错误。 I'd expect other Java programs to be affected, too: if you search for the error message, you will mostly find it with other software, eg, here: Install Java 11 OpenJDK on Windows (a system path issue)我希望其他 Java 程序也会受到影响:如果您搜索错误消息,您通常会在其他软件中找到它,例如: 在 Windows 上安装 Java 11 OpenJDK(系统路径问题)

I suggest that you (1) uninstall all Java versions, (2) run "java -version" to make sure you really removed all, (3) reboot, Windows needs this to reset some system variables, (4) reinstall the Java version(s) you intend to use (5) reboot once more, in case Java installation changed the system variables once more.我建议你 (1) 卸载所有 Java 版本,(2) 运行“java -version”以确保你真的删除了所有,(3) 重新启动,Windows 需要这个来重置一些系统变量,(4) 重新安装 Java 版本(s) 您打算再次使用 (5) 重新启动,以防 Java 安装再次更改系统变量。 If that worked, please report so.如果有效,请报告。

Nevertheless, the ELKI 0.7.1 release will not work with Java 11 .尽管如此,ELKI 0.7.1 版本不适用于 Java 11 You will need to compile the latest version from Github , because of subtle incompatibilities in Java.由于 Java 中的细微不兼容性,您需要从 Github 编译最新版本 These are already fixed in ELKI (removing a cast that no longer worked, but also was not necessary), there just has not been a new release yet, sorry.这些已经在 ELKI 中修复了(删除不再有效但也没有必要的演员表),只是还没有新版本,抱歉。 It is developer software, users are expected to use the source.它是开发者软件,用户应使用源代码。 Right now, ELKI is only well tested with Java 8, because of the module mess introduced in Java 9, and not all dependencies being ported to the module system yet.目前,ELKI 仅在 Java 8 中进行了良好的测试,因为 Java 9 中引入了模块混乱,并且尚未将所有依赖项移植到模块系统中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM