Skip to content
Adds the ability to import and map Java packages to nested Ruby modules/classes to RJB.
Ruby
Find file
Latest commit 065995b Apr 30, 2010 @svenfuchs initial commit
Failed to load latest commit information.
lib initial commit Apr 30, 2010
README.textile initial commit Apr 30, 2010
rjb-require.gemspec initial commit Apr 30, 2010

README.textile

Rjb.require

Adds the ability to import and map Java packages to nested Ruby modules/classes to RJB.

Usage

require 'rjb/require'

# java.net.URL is already in your classpath
Rjb.require 'java.net.URL'
Java::Net::URL.new('http://github.com')

# load some custom library
Rjb.load_from 'path/to/htmlunit' # loads all jar files to Rjb
Rjb.require 'com.gargoylesoftware.htmlunit.WebClient'

Authors

Something went wrong with that request. Please try again.