16

What is the difference between openjdk-7-jre-headless and openjdk-7-jre.

When I type java in the terminal in Ubuntu it suggest openjdk-7-jre-headless not openjdk-7-jre

Emil Hemdal
  • 589
  • 2
  • 8
  • 27
Manish Kumar
  • 10,214
  • 25
  • 77
  • 147
  • Possible duplicate of [Difference between openjdk-6-jre, openjdk-6-jre-headless, openjdk-6-jre-lib](https://stackoverflow.com/questions/24280872/difference-between-openjdk-6-jre-openjdk-6-jre-headless-openjdk-6-jre-lib) – Trevor Boyd Smith Feb 12 '18 at 15:06

1 Answers1

20

The difference between the two can quickly be summed up as the following

  • The openjdk-7-jre-headless package is used when you don't need to draw anything in the graphical user interface. For example a background service or a terminal application. It's commonly used on servers.
  • The openjdk-7-jre package includes the openjdk-7-jre-headless package since it contains most of the Java features. It is commonly found on on desktops.
  • The openjdk-7-jre package isn't recommended to install on a server since it installs extra software that is not commonly used on a server.
Emil Hemdal
  • 589
  • 2
  • 8
  • 27