Top Level Namespace

Defined Under Namespace

Modules: Kernel, RCDK

Constant Summary collapse

RCDK_VERSION =

RCDK - The Chemistry Development Kit for Ruby

Project Info: rubyforge.org/projects/rcdk Blog: depth-first.com

Copyright © 2006 Richard L. Apodaca

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02111-1301, USA.

'0.3.0'
CDK_VERSION =
'20060714'
STRUCTURE_CDK_VERSION =
'0.1.2'
OPSIN_VERSION =
'0.1.0'

Instance Method Summary collapse

Instance Method Details

#require_jar(path_to_jarfile) ⇒ Object

Adds the fully-qualified path path_to_jarfile to the CLASSPATH environment variable. Any jarfiles added after the first invocation of a Java constructor will be globally ignored, i.e., require all jarfiles first in your program before constructing objects from them.



34
35
36
37
38
39
40
# File 'lib/rcdk/java.rb', line 34

def require_jar(path_to_jarfile)
  if classpath_set?
    ENV['CLASSPATH'] = ENV['CLASSPATH'] + File::PATH_SEPARATOR + path_to_jarfile
  else
    ENV['CLASSPATH'] = path_to_jarfile
  end
end