I would like to use a folder of a jar (or zip) file as ressource folder using :
URI uri= new URI("file:///D:/temp/data.jar!/texture/");
ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,new SimpleResourceLocator(uri));
URI uri = new URI("jar:file:/D:/tmp/data.zip!/textures/test.txt");
ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,new SimpleResourceLocator(uri));
I guess there was a tidbit I forgot to mention, in order for that to work the zip or jar file must be included in the classpath.
You solution will work even if the archive is not in the classpath; however defining absolute paths like that places the burden of keeping track of where the 'root' location is on you.