Here we do a polyglot maven build. But you could do a manual build quite easily if you wished. If you have a recent maven installed all you need to do is to compile and run.
rakeSee also how to build jruby extensions with polyglot maven
NB: It is important for the library_loader to put the xor.jar in library/xor directory if you do a manual bulid