错误:注册表项“Software\JavaSoft\Java Runtime Environment'\CurrentVersion”? [英] Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'?

查看:1791
本文介绍了错误:注册表项“Software\JavaSoft\Java Runtime Environment'\CurrentVersion”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行:
C:\Users\ashahria\Downloads> java -jar schemaSpy_5.0.0.jar

When I run: C:\Users\ashahria\Downloads>java -jar schemaSpy_5.0.0.jar

我收到错误下面。哪里不对?如何修复?

I get the error below. What is wrong? How can I fix it?


错误:注册表项Software\JavaSoft\Java Runtime Environment'\CurrentVersion

Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'

的值为'1.5',但需要'1.7'。

错误:找不到java.dll

错误:找不到Java SE运行时环境。

has value '1.5', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.


推荐答案

在我的Windows 7机器上,通过执行以下操作来解决:

On my Windows 7 machine, it was solved by doing the following:


  1. 开始菜单中,键入 regedit 打开注册表(请小心操作)

  2. 转到左侧注册表浏览器/树上的 HKEY_LOCAL_MACHINE 菜单

  3. 点击HKEY_LOCAL_MACHINE注册表

  4. 点击软件,点击 JavaSoft 在软件注册表中

  5. 在JavaSoft注册表列表中单击 Java运行时环境

  6. 突出显示 CurrentVersion (应在右侧的主注册表项目资源管理器窗口中看到)

  7. 将版本更改为 1.7

  1. In the START menu type "regedit" to open the Registry (be careful doing this)
  2. Go to "HKEY_LOCAL_MACHINE" on the left-hand side registry explorer/tree menu
  3. Click "SOFTWARE" within the "HKEY_LOCAL_MACHINE" registries
  4. Click "JavaSoft" within the "SOFTWARE" registries
  5. Click "Java Runtime Environment" within the "JavaSoft" list of registries
  6. Highlight "CurrentVersion" (should see it in the main registry key explorer window on the right)
  7. Change version to "1.7"

这是所有...应该工作。如果您已经尝试过其他指南和/或弄坏了您的注册表,那么处理此问题的最有效方法是删除所有先前版本的Java(使用程序和功能卸载过程),然后重新安装您想要使用的版本。我建议分发网站为:
http://java.com (因为它通常具有最稳定的版本)

That is all... should work. Short of that, if you've already tried some other guides and/or messed up your registries, the most certain way to deal with the problem is to delete all previous versions of Java (using "Programs and Features" uninstall process) and then re-install just the version you want to work with. I'd suggest the distribution site at: http://java.com (as it usually has the most stable version)

或从Oracle网站查找您需要的特定版本:
http://www.oracle.com/technetwork/java/javase/downloads/

Or look for a specific version you need from Oracle's site: http://www.oracle.com/technetwork/java/javase/downloads/

这篇关于错误:注册表项“Software\JavaSoft\Java Runtime Environment'\CurrentVersion”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆