What is the difference between the jre parameters java.awt.headless and java.awt.headlesslib?

I used the former many times ( -Djava.awt.headless=true) to prevent the infamous "no DISPLAY found" error for some applications that used some graphical methods in the JRE.

But since then I also learned about the existence of the second. Despite the hours of searching, I cannot find the difference between them.

And to make matters worse, I'm not a graphical interface specialist at all ... So, is there any real difference? What code will work with one, but not with the other, or will it require, etc.?

+4
source share
1 answer

java.awt.headlesslib , 2001 JDK-4407772.

openjdk6, openjdk7 openjdk8 grep , java.awt.headlesslib, .

, java.awt.headlesslib , java.awt.headless - .

+4

All Articles