Fixed some require bugs

only require them when jruby was started.