disallow opening non-whitelisted file types on Java 6 or lower