Permalink
Browse files

use the JRuby classloader as parent for the Mirah class loader. Other…

…wise it doesn't load the right classpath
  • Loading branch information...
1 parent e4b3efb commit e7be6749c3cfd2c3c2345690fada424bd3bba37d @calavera committed Dec 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mirah.rb
View
@@ -142,7 +142,7 @@ def run(*args)
end
# load all classes
- dcl = MirahClassLoader.new(java.lang.ClassLoader.system_class_loader, class_map)
+ dcl = MirahClassLoader.new(JRuby.runtime.jruby_class_loader, class_map)
class_map.each do |name,|
cls = dcl.load_class(name)
# TODO: using first main; find correct one

0 comments on commit e7be674

Please sign in to comment.