Fix java apllication