add function to execute java native function