Add Apple-specific flag to prevent popup window on JDK8.