就在我正在啃编译原理 Java 编程作业的时候,JRE 给我来了这么一出:
开机启动后软件自动检查更新,然后就说有新版本巴拉巴拉,那我就照办吧,结果......
丫 remove 掉了我以前安装的 JRE 10.0,然后给了个 JRE 8u191 的链接。(wtf*1)
那我只能硬上了。
然后就是喜大普奔的较新版 JDK (10.0)编译的 bitcode 不能被旧版 JRE 执行。
我上了一下甲骨文 Java 页面,发现他们目前只提供 JDK 11 和 JRE 8u191 的下载。(wtf*2)
现有解决方式是静候 JRE 11 的发布,或是换用 OpenJDK。
这次的教训就是更新生产力工具前要十分小心,需要先搜索有无兼容性问题等。
所以谁知道 JRE10 哪里有得下,在线等,急

现在我转移到装了 Ubuntu 18.04 的备胎机上写作业了,果粒768p屏幕看着真难受

唉,码农何苦为难码农。。。

更新

查阅 JDK 11 Readme 知:JRE 直接于 JDK 中提供。

(In the bin/ subdirectory) An implementation of the Java Runtime Environment (JRE). The JRE includes a Java Virtual Machine (JVM™), class libraries, and other files that support the execution of programs written in the Java programming language. This directory also includes tools and utilities that will help you develop, execute, debug, and document programs written in the Java programming language. For further information, see the tools documentation at https://docs.oracle.com/javase/11/tools

遂下载 JDK 11,安装,删除旧版。
只不过这次又遇上了新的问题。(sigh)
javac命令可以正常使用,但是当我使用java时,产生如下错误信息:

Error: opening registry key 'Software\JavaSoft\JRE'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

而当手动指定 executable 时则可以运行。

在安装新版与卸载旧版之后,我使用了 CCleaner 修复了注册表,并更改了环境变量。这种错误实在超出了我的能力范围。
巨硬德行如何人尽皆知,解决这个问题看来需要很大功夫呢。(笑)

再次更新:已解决

屈辱地参照了百度经验的方法。
我惊讶于这次百度发挥了比检查是否连上网络更大的作用。

© 2018-2025 0xFFFF