|
|
|
String os = System.getProperty("os.name");URL syspath = LawsIndex.class.getClassLoader().getResource("");String path = syspath.toString();path = path.replace("+", " ");path = path.replace("%20", " ");if (os.startsWith("Windows")) {path = path.substring(6, path.length());}InputStream is = new FileInputStream(path+"word.dic"); |
|