Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
bin/jruby jruby-cext/examples/MyTest/MyTest.rb
require 'mytest'
MyTest.test1
LD_LIBRARY_CONFIG=jruby-cext/examples/MyTest:cext/build \
bin/jruby -J-Djava.library.path=cext/build \
jruby-cext/examples/MyTest/MyTest.rb
include Java
m = org.jruby.cext.ModuleLoader.new
ext = File.join(File.dirname(__FILE__), "mytest")
m.load(self, ext)
MyTest.test1 # call the C defined method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.