Simplify java main