I haven't tried this (although I have used a similar approach to opening an InputStream to a file in a jar many times). But maybe its worth a try?
File f = new File((getClass().getResource("files/UserGuide.pdf").toURI()));
You'll probably have to catch a URISyntaxException, although there should never be one
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
I don't know, sorry. Maybe its a limitation in whatever code you are passing that File to?
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073