summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-10-28 11:17:06 +0200
committermguetlein <martin.guetlein@gmail.com>2011-10-28 11:17:06 +0200
commit334568e596442d13e884dcabda3b1769bdfd898c (patch)
tree5d37535a3b838827e044f68f42b6fcfeff10bebf
parenta3a69996ff2025fab54287799564f1d081d4d97c (diff)
make sure load java in headless mode, this caused problems on the opentox validation service when loading images
-rw-r--r--application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb
index fe7a76b..fe04547 100644
--- a/application.rb
+++ b/application.rb
@@ -38,7 +38,7 @@ end
def png_from_smiles(smiles)
begin
- Rjb.load(nil,["-Xmx64m"])# avoid JVM memory allocation problems
+ Rjb.load(nil,["-Xmx64m","-Djava.awt.headless=true"])# avoid JVM memory allocation problems
Rjb::import('Structure').new(smiles,150).show
rescue
LOGGER.warn e.message