Skip to content

Commit

Permalink
Set -Djava.awt.headless=true in EpubChecker class // fixes #665
Browse files Browse the repository at this point in the history
needs to be set as early as possible in a static way
  • Loading branch information
tofi86 authored and rdeltour committed Jun 13, 2017
1 parent 6540b03 commit cd63a16
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/adobe/epubcheck/tool/EpubChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
public class EpubChecker
{

static {
/* fix #665 (window-less "Checker" gui app on Mac)
* set -Djava.awt.headless=true programmatically as early as possible
*/
System.setProperty("java.awt.headless", "true");
}

String path = null;
String mode = null;
EPUBProfile profile = null;
Expand Down

0 comments on commit cd63a16

Please sign in to comment.