4 ms·
Ok, but to create a wrapper for the Java library, you probably need to grok Java enough to read the documentation and create some code that sits on top of it.
by davidw 17y ago
Ok, but to create a wrapper for the Java library, you probably need to grok Java enough to read the documentation and create some code that sits on top of it.
- jamesbritt 17y agoWith JRuby (and I think scala and clojure as well) you only need to know the API and how to get the class or jar file onto you load path. There are times when a Java method demands a specific Java type and JRuby does not automatically convert correctly, but mostly the use of Java libs from JRuby is pretty trivial, and the only time I've had to write Java to wrap anything was when I wanted a nicer API for some 3rd-party crypto libs and adding a few methods to the Java source was easier for me.