Difference between openjdk-6-jre, openjdk-6-jre-headless, openjdk-6-jre-lib

醉酒当歌 提交于 2019-11-28 05:12:44

You are correct in that you will need a jre package to run any java application.

Since you say you're running on an embedded platform I assume that the java app you want to run has no gui. In that case, you will be fine with openjdk-6-jre-headless. This is explained on the openjdk-6-jre-headless package page here "Minimal Java runtime - needed for executing non GUI Java programs".

As you can see from the debian package details page, openjdk-6-jre-headless depends on openjdk-6-jre-lib (among other packages), so that will get installed either way.

If however the java app you want to run has a gui, you will need openjdk-6-jre instead of openjdk-6-jre-headless

Edit: Fixed links.

Edit: Fixed Links again

The main reason for having two distinct packages available are the dependencies of the packages. openjdk-6-jre will also depend on:

libasound2, libgif4, libjpeg62, libpng12-0, libpulse0 , libx11-6, libxext6, libxi6, libxrender1, libxtst6 and zlib1g

And contrary to the previous comment openjdk-6-jre depends on openjdk-6-jre-headless, making the latter really just a subset.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!