theoretical j func calling from c
save jvm and reattach env