public static final File getFile(String pathname, boolean inClassPath) {
		if (inClassPath) {
			char char0 = pathname.charAt(0);
			if (char0 != '/' && char0 != '\\') {
				pathname = '/' + pathname;
			}
			try {
				return new File(FileUtil.class.getResource(pathname).toURI());
			} catch (URISyntaxException e) {
				throw new IllegalArgumentException(e);
			}
		}
		return new File(pathname);
	}