Thanks for sharing, BeRo. That jni.pas file could be useful for other projects too.