Replace example to java application

Replace example to java application