Migrate project to java