I've got the following code: java.net.URL srcFileURL = Thread.currentThread().getContextClassLoader().getResource("meaning.unl"); File destFile = new File("tmp.unl"); FileUtils.copyURLToFile(srcFileURL, destFile);
The last line throws an exception. If I print the file location, it's correct (meaning.unl) is in the jar file, which is on the classpath. Any idea why? Does copyURLToFile not support a file that is inside of a jar? Any suggestions? Thanks, Mike.