有没有办法不用手动下载新版本就可以更新JDK?
我刚刚收到 Java 更新通知,更新 17 已发布,因此我运行更新,发现只有我的公共 JRE 被更新。我仍然只有 JDK Update 16。
有没有办法在最新的 JDK 可用时自动获取它?
当然,更新不应该删除旧版本。这应该手动完成,因为 Eclipse 仍在使用旧版本。一旦我更新了我的设置,我就会手动删除旧的 JDK。
I just got an Java update notification that Update 17 is out, so I ran the update and found that only my public JRE was updated. I still only have Update 16 of the JDK.
Is there a way to have the latest JDK automatically when it's available?
Of course, the update shouldn't get rid of old versions. That should be done manually since Eclipse is still using the old version. Once I've updated my settings I would delete the old JDK manually.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
不适用于 Windows。如果您通过带有自动更新程序的 Linux 发行版获取 JDK,那么您可以依赖它。不知怎的,我怀疑这就是你的想法。我不相信 Sun 提供任何 JDK 的自动下载。
Not on Windows. If you are getting your JDK via a linux distro with an auto-updater, you could depend on that. Somehow I doubt that is what you have in mind. I do not believe that there is any Sun-supplied auto-download for the JDK.
在 OS X 下,这是操作系统的一部分,并且会自动更新。对于 Windows,您必须自己完成。
Under OS X this is part of the operating system and is automatically updated. For Windows you must do it yourself.
Secunia PSI(在单台 PC 上运行的免费版本)将自动更新。请此处阅读对其的评论。如果您同时运行 Java 6 和 Java 7 JRE(像我一样),则可能会出现故障,有时您仍然需要手动更新。
Secunia PSI (a free version that runs on a single PC) will update it automatically. Read a review of it here. If you're running both Java 6 and Java 7 JREs (like me), there can be glitches and you still have to update manually sometimes.
Ninite 是一个很棒的网站,可让您下载多个应用程序/软件包的最新版本。如果您保存安装程序,它将始终提取最新版本并下载/安装它,而不会出现提示。参考: https://ninite.com/help/home/update.html
我做了我自己刚才就是这样,唯一需要注意的是,我必须删除“C:\Program Files\Java”中较旧的 jdk 文件夹,以便“java -version”命令识别更改。
Ninite is a great website that lets you download the latest version of multiple applications/packages. If you save the installer, it will always pull the most recent version and download/install it without prompts. Reference: https://ninite.com/help/home/update.html
I did this myself just now, only caveat is that I had to delete the older jdk folder in "C:\Program Files\Java" in order for the "java -version" command to recognize the change.
在 MacOS 上,现在可以通过 Homebrew 包管理器安装
java
。安装 Homebrew 后,您只需运行:brew cask install java
即可安装最新的 java 版本。 保持它
然后可以使用
brew cask reinstall java
来On MacOS,
java
can now be installed through the Homebrew package manager. After installing Homebrew, you can simply run:brew cask install java
to install the latest java version. It can then be kept up using
brew cask reinstall java