Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
此计算机上存在较新版本的Java 8_Java_Installation_Java 8 - Fatal编程技术网

此计算机上存在较新版本的Java 8

此计算机上存在较新版本的Java 8,java,installation,java-8,Java,Installation,Java 8,在尝试安装时,我收到以下消息: A Newer Version of this Product Already Exists A newer build of this version of Java already exists on your system. It is not possible to install an older build. Click OK to exit this installation. 两个问题: 1) 从什么时候开始,在一台计算机上就不可能有多个版本的

在尝试安装时,我收到以下消息:

A Newer Version of this Product Already Exists

A newer build of this version of Java already exists on your system. It is not possible to install an older build. Click OK to exit this installation.
两个问题:

1) 从什么时候开始,在一台计算机上就不可能有多个版本的JDK了

2) 在哪里可以使用比最新版本更新的Java

我的Java文件夹如下:

 Directory of C:\Program Files\Java

19.12.2013  20:39    <DIR>          .
19.12.2013  20:39    <DIR>          ..
27.01.2012  23:16    <DIR>          jdk1.6.0_20
08.09.2011  16:25    <DIR>          jdk1.6.0_27
05.09.2011  13:51    <DIR>          jdk1.7.0
27.04.2013  00:31    <DIR>          jdk1.7.0_21
04.10.2013  01:33    <DIR>          jdk1.7.0_40
19.12.2013  20:41    <DIR>          jdk1.7.0_45
08.09.2011  16:21    <DIR>          jre6
19.12.2013  20:41    <DIR>          jre7
21.11.2013  00:41    <DIR>          jre8
C:\Program Files\Java的目录 19.12.2013 20:39 . 19.12.2013 20:39 .. 27.01.2012 23:16 jdk1.6.0_20 2011年9月8日16:25 jdk1.6.0_27 2011年9月5日13:51 jdk1.7.0 2013年4月27日00:31 jdk1.7.0_21 2013年10月4日01:33 jdk1.7.0_40 2013年12月19日20:41 jdk1.7.0_45 2011年9月8日16:21 jre6 19.12.2013 20:41 jre7 2013年11月21日00:41 jre8
我设法避免此消息,并通过删除以下注册表项来安装JDK:

HKLM\SOFTWARE\JavaSoft


之后,JDK安装程序将询问您是否要重新安装它。

纠正此问题的步骤:

暂时删除以下环境变量中jdk的值:

JAVA_HOME(完全删除)、类路径(部分删除)、路径(部分删除)

将它们重置为正确的版本

如果要返回到早期版本,请更新“CurrentVersion”,使其与“Java开发工具包”列表中的子文件夹匹配


只是猜测,但您可以尝试将
jre8
文件夹重命名为其他文件夹。这可能会让安装程序相信您还没有Java8。免责声明:我认为这不会对您系统的其他地方产生负面影响,但我不做任何保证。java8是预发布文件夹。是的,你是对的,我应该试试这对我有用。非常令人失望的是,Java的官方工具无法成功地检测到我实际上没有任何旧版本。除其他外。