在 JEP 220 的更改之后,tools.jar 等效物是否与 JRE 预安装一起提供?

huangapple 未分类评论54阅读模式
英文:

After JEP 220 changes does tools.jar equivalent ship pre-installed with JRE?

问题

迁移指南似乎表明,在JEP 220之后,JDK和JRE都安装在lib目录中。

动态链接库和完整的JDK内部实现。

由于它说“完整”,这是否意味着例如之前未随JRE一起提供的tools.jar现在确实作为libjvm的一部分随JRE一起提供?

分析Ubuntu软件包

似乎JDK版本在lib/下不会安装任何额外的内容,尽管它确实在jmods/下安装了一堆模块。据我所知,.jmods与模块化映像一起提供,但对于构建应用程序不是严格必要的?

我理解在JDK 9之前的世界中已经多次提出了类似的问题,但在JEP 220引入重大变化之后,JDK安装提供了哪些额外的API,而仅JRE安装不提供这些API?

英文:

Migration guide seems to state that after JEP 220 both JDK and JRE install in lib directory

> dynamically linked libraries and the complete internal
> implementation of the JDK.

Since it says "complete" does this mean, for example, tools.jar which previously did not ship with JRE, now indeed ships on JRE as part of libjvm?.

Analysing Ubuntu packages

it seems JDK version does not install anything extra under lib/ although it does install bunch of modules under jmods/. AFAIU, .jmods are relevant if one ships app with modular image, however they are not strictly necessary for building an application?

I understand similar question has been asked many times in pre-JDK9 world, however after JEP 220 introduced significant changes, what extra APIs are provided by JDK installation that are not provided by just JRE installation?

huangapple
  • 本文由 发表于 2020年3月16日 01:28:52
  • 转载请务必保留本文链接:https://java.coder-hub.com/60695706.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定