gpt4 book ai didi

java - openjdk-7-jre-headless 和 openjdk-7-jre(jdk) 有什么区别?

转载 作者:IT老高 更新时间:2023-10-28 21:00:07 28 4
gpt4 key购买 nike

当我在 ubuntu 的命令提示符中键入 java -version 时,我得到以下输出

The program 'java' can be found in the following packages:
* default-jre
* gcj-4.8-jre-headless
* openjdk-7-jre-headless
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
Try: apt-get install <selected package>

因为我没有安装 java,所以我得到了上面的输出。我想知道 openjdk-7-jre-headlessopenjdk-7-jre

之间的区别

最佳答案

引用 debian's wiki :

There are several virtual packages used in Debian for Java. These cover runtime compatibility and come in two flavours; headless (omits graphical interfaces) and normal.

或者更准确地说,考虑 this description from Oracle :

Headless mode is a system configuration in which the display device, keyboard, or mouse is lacking. Sounds unexpected, but actually you can perform different operations in this mode, even with graphic data.

关于java - openjdk-7-jre-headless 和 openjdk-7-jre(jdk) 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32862344/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com