注册表项错误:Java版本的值为“1.8”,但需要“1.7” [英] Registry key Error: Java version has value '1.8', but '1.7' is required

查看:505
本文介绍了注册表项错误:Java版本的值为“1.8”,但需要“1.7”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行时

sencha app build production

我收到以下错误:


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

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

的值为'1.8',但需要'1.7'。错误:找不到java.dll
错误:找不到Java SE运行时环境。

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

java -version ,命令显示如下:

java版本1.8.0_40
Java(TM)SE运行时环境(build 1.8.0_40-b26)
Java HotSpot(TM)64位服务器VM(版本25.40-b25,混合模式)

java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

无法找到路径出错了。有什么想法?

Not able to find where path is going wrong. Any idea?

-----------------------编辑-------- ----------------------------------------

----------------------- EDIT ------------------------------------------------

注意:我使用的是Windows 7(64位)。

Note: I am using Windows 7 (64 bit).

我尝试卸载sencha touch cmd并重新安装。但仍然是同样的错误。

I have tried uninstalling the sencha touch cmd and reinstalling. But still same error.

我已经卸载了所有的java版本实例并重新安装了最新的版本,问题仍然存在。

I have uninstalled all the java version instances and reinstalled the latest one, Still the problem persist.

推荐答案

在尝试了数百个技巧后,终于获得了成功。

After trying more than hundred of tricks, finally got success.

我删除了所有 java.exe javaw.exe javaws.exe 来自我的

I removed all java.exe, javaw.exe and javaws.exe from my


  1. Windows \ System32

Windows \SysWOW64
文件夹。 [如果你有x64系统(Win 7 64位),请尝试第2步]

Windows\SysWOW64 folder. [Try step 2 if you have x64 system (Win 7 64 bits)]

这篇关于注册表项错误:Java版本的值为“1.8”,但需要“1.7”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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