what's wrong with JCC?<p><a href="http://lucene.apache.org/pylucene/jcc/index.html" rel="nofollow">http://lucene.apache.org/pylucene/jcc/index.html</a><p>i have used it a lot to generate JNI bindings for other code via a simple Makefile template (list JARs and packages, alter names and versions, and poof). it works quite often, but it does run into some wonky C++ code it can't quite figure out.<p>still, pretty easy. one example are some (work-private) mahout bindings.