Fix java apps.