How can a Java applet load a file from the same directory in which its .jar file resides, without knowing the absolute URL? I.e. what string should I pass to javax.xml.parsers.Document
rse(), documented here:
to tell it to load "myfile.svg" from the same directory from which the jar file was loaded?
In HTML I can use relative URLs, i.e. from "a.html" I can hyperlink to "b.html" without giving the full absolute URL, and the browser will know to use the "b.html" file in the same dir as the referring "a.html". How do I get the equivalent of such relative addressing from inside a Java applet?
Thanks for help!