Generate require file for jruby generator and a few bug fixes
Fix enum to_java for jruby generator