Fix for some Java apps.