Code example for RuntimeException

0
            throw new RuntimeException ("Can't access OSCARS home: " + SharedConfig.oscarsHome);
        } 
        try { 
            SharedConfig.oscarsHome = oscarsDirFile.getCanonicalPath();
        } catch (IOException e) {
            throw new RuntimeException (e);
        } 
     } 
     
    /** 
     * sets the static oscarsHome variable from either a system property or and 
     * environment variable named "OSCARS_HOME" 
     * called statically at startup 
     */ 
    public static synchronized void setOscarsHome() { 
        if (SharedConfig.oscarsHome != null) {
            // Already initialized 
            return; 
        } 
        SharedConfig.oscarsHome = System.getProperty(SharedConfig.OSCARS_HOME_PROPERTY);
        if (SharedConfig.oscarsHome == null) {