update main java