Use Approximation in the JNI to communicate with the Java layer.
Remove the HTML view of the roots and implement a native plot using
a custom View and a Canvas.