Setting glassfish to headless mode.
authorMichele Silva <michele.silva@gmail.com>
Wed, 18 Jan 2012 01:11:12 +0000 (23:11 -0200)
committerMichele Silva <michele.silva@gmail.com>
Wed, 18 Jan 2012 01:11:12 +0000 (23:11 -0200)
src/java/org/ufcspa/simdecs/bn/ui/FileUploadController.java

index aa5f25e..abe9b6f 100644 (file)
@@ -75,7 +75,7 @@ public class FileUploadController implements Serializable {
         try {
             File file = this.saveUploadedFile(event.getFile());            
             // required to run unbbayes gui classes on server
-            System.setProperty("java.awt.headless", "false"); 
+            System.setProperty("java.awt.headless", "true"); 
             
             ProbabilisticNetwork bn = new ProbabilisticNetwork(null);
             XMLBIFIO.loadXML(new File(file.getAbsolutePath()), bn);