Add and update Java extern generator