I noticed that the Warbler gem bundles jruby-complete-1.1.1.jar and
would have a couple of questions on this. Firstly, what exactly do the
jruby-complete-x.y.z jar files consist of? Secondly, does Warbler indeed
need the jruby-complete jar or is it possible to make it work with the
jruby-bin distribution? The reason I’m asking is that I’m looking into
bundling Warbler with Netbeans, which already bundles JRuby (but not
jruby-complete AFAICT, depending on the answer for the first question)
and would like to avoid bundling additional JRuby distributions with the
IDE.
I noticed that the Warbler gem bundles jruby-complete-1.1.1.jar and would
have a couple of questions on this. Firstly, what exactly do the
jruby-complete-x.y.z jar files consist of?
It’s the JRuby interpreter plus all the Ruby standard libraries,
launch scripts and Rubygems that come with the basic distribution
bundled in a single jar.
Secondly, does Warbler indeed
need the jruby-complete jar or is it possible to make it work with the
jruby-bin distribution? The reason I’m asking is that I’m looking into
bundling Warbler with Netbeans, which already bundles JRuby (but not
jruby-complete AFAICT, depending on the answer for the first question) and
would like to avoid bundling additional JRuby distributions with the IDE.
It’s much easier with the complete jar file, as there are no loose
files that need to be copied into the webapp. I haven’t even really
considered supporting building a war file from the jruby-bin
distribution up to this point.
It’s technically possible to create a jruby-bin distribution from a
complete jar, though I don’t think people do this very often.
java -Djruby.home=/path/to/extract/jruby -jar
jruby-complete-1.1.1.jar -S extract
This creates a directory structure nearly identical to the one that
comes with the jruby-bin distribution.