Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View new_cext_run.sh
1
bin/jruby jruby-cext/examples/MyTest/MyTest.rb
View new_cext_run.sh
1 2 3
LD_LIBRARY_CONFIG=jruby-cext/examples/MyTest:cext/build \
bin/jruby -J-Djava.library.path=cext/build \
jruby-cext/examples/MyTest/MyTest.rb
View new_cext_run.sh
1 2 3 4 5
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.