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.?
source
share