/** Initialize ResourceBundle */ static { try { rsrc = ResourceBundle.getBundle("sun.tools.jar.resources.jar"); } catch (MissingResourceException e) { throw new Error("Fatal: Resource for jar is missing"); } }
private String getMsg(String key) { try { return (rsrc.getString(key)); } catch (MissingResourceException e) { throw new Error("Error in message file"); } }
public static ResourceBundle getResources() { if (_resources == null) { _resources = ResourceBundle.getBundle("jnlp/sample/jardiff/resources/strings"); } return _resources; }