build code for jar native