add the java main source code