JNI (java native interface)

è l'unica soluzione anche se alquanto ostica.. cercare per credere...