Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master
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.