If you load the resource with class.getResourceAsStream("foo/file.txt") then it should work, regardless of whether it's packaged up as a Jar or not. Alex.