diff options
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/application.rb b/application.rb index f5b331f..53478a1 100644 --- a/application.rb +++ b/application.rb @@ -1,3 +1,14 @@ +ENV["JAVA_HOME"] = "/usr/lib/jvm/java-6-sun" unless ENV["JAVA_HOME"] +ENV["JOELIB2"] = File.join File.expand_path(File.dirname(__FILE__)),"java" +deps = [] +deps << "#{ENV["JAVA_HOME"]}/lib/tools.jar" +deps << "#{ENV["JAVA_HOME"]}/lib/classes.jar" +deps << "#{ENV["JOELIB2"]}" +jars = Dir[ENV["JOELIB2"]+"/*.jar"].collect {|f| File.expand_path(f) } +deps = deps + jars +ENV["CLASSPATH"] = deps.join(":") + + require 'rubygems' # AM LAST: can include both libs, no problems require File.join(File.expand_path(File.dirname(__FILE__)), 'libfminer/libbbrc/bbrc') # has to be included before openbabel, otherwise we have strange SWIG overloading problems |