Top Level Namespace

Instance Method Summary (collapse)

Instance Method Details

- (Object) png_from_smiles(smiles)



39
40
41
42
43
44
45
46
# File 'application.rb', line 39

def png_from_smiles(smiles)
  begin
    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
  end
end