1

How do I check whether the installed JRE is JRE-headless or the FULL-JRE?

As headless-JRE's are lightweight and they do not contain dependencies for GUI components, they are preferred for server applications and embedded systems.

Patrick
  • 1,208
  • 1
  • 14
  • 25
thebytewalker
  • 196
  • 2
  • 12
  • [This](https://stackoverflow.com/a/16611566/133203) may give you ideas. – Federico klez Culloca Jul 17 '18 at 08:07
  • [GraphicsEnvironment isHeadless()](https://docs.oracle.com/javase/7/docs/api/java/awt/GraphicsEnvironment.html#isHeadless()) – khelwood Jul 17 '18 at 08:08
  • 3
    Possible duplicate of [Is there a safe, programmatic way to determine if it's safe to open a Swing window?](https://stackoverflow.com/questions/5893236/is-there-a-safe-programmatic-way-to-determine-if-its-safe-to-open-a-swing-wind) – Florian Albrecht Jul 17 '18 at 08:08

0 Answers0