Skip to content
Create a gist now

Instantly share code, notes, and snippets.

bin/jruby jruby-cext/examples/MyTest/MyTest.rb
require 'mytest'
LD_LIBRARY_CONFIG=jruby-cext/examples/MyTest:cext/build \
bin/jruby -J-Djava.library.path=cext/build \
include Java
m =
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.