Hi kgrad5,
is the URL returned by getResource null or in what way does it not find
the svg file? If so, you *need* to adjust path.
I find it much more easy to use getClass().getResource(path), because
then path has to be relative to the class file.
Can you tell us the file hierarchy in your jar for the class file from
which you try to resolve the resource and the svg file?
Kind regard, Thomas
kgrad5 wrote:
I think i have figured out the manifest problem, only now it cannot load my
svg.
It loads it fine when launched from eclipse, but when I try to run the jar
it says it cannot find the svg file.
the code i am using is simply:
URL url = getClass().getClassLoader().getResource(path);
where path is the relative path to my .svg file.
The path is correct (I have checked numerous times) however it fails to find
the svg. Is there a special way in which i must load .svg files within a jar
file?
thanks for the help.
--
Thomas Behr
yWorks GmbH
Vor dem Kreuzberg 28
72070 Tuebingen, Germany
Tel.: +49 7071 9709050
Fax.: +49 7071 9709051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]