Skip to content

Instantly share code, notes, and snippets.

@bernerdschaefer
Created July 19, 2010 15:14
Show Gist options
  • Save bernerdschaefer/481525 to your computer and use it in GitHub Desktop.
Save bernerdschaefer/481525 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "rubygems"
require "jruby-jars"
args = [ "-jar", JRubyJars.stdlib_jar_path,
"-r", JRubyJars.stdlib_jar_path ].push(*$*)
exec("java", *args)
# > ./jruby -e 'require "irb"; IRB.start'
# -e:1:in `require': no such file to load -- irb (LoadError)
# from -e:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment