Update java main