Java native introduction and sample