add native to java