From dfef391f1816b7444755a61699649c5ec55dc1c6 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Fri, 20 Apr 2012 23:09:45 +0000 Subject: [PATCH] issue 361 - Run AWT headless when we are in headless mode git-svn-id: http://google-refine.googlecode.com/svn/trunk@2492 7d457c2a-affb-35e4-300a-418c747d4874 --- server/src/com/google/refine/Refine.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/com/google/refine/Refine.java b/server/src/com/google/refine/Refine.java index b44eace51..3e51dbc4b 100644 --- a/server/src/com/google/refine/Refine.java +++ b/server/src/com/google/refine/Refine.java @@ -113,7 +113,9 @@ public class Refine { server.init(host,port); boolean headless = Configurations.getBoolean("refine.headless",false); - if (!headless) { + if (headless) { + System.setProperty("java.awt.headless", "true"); + } else { try { RefineClient client = new RefineClient(); client.init(host,port);