A Ruby class can even implement Java interfaces—necessary for statically calling Ruby methods from Java. To initialize the libraries used for accessing Java from Ruby, start with require "java".