Add java native example