denemeJasper.class.
getResource
("reportDeneme.jasper").
getPath
()
If you need the path for reading the file's contents, it would be simpler (and safer) to use getResourceAsStream()
and avoid having to deal with paths entirely.
BTW, your class denemeJasper
violates ubiquitous Java naming standards; as a class, its name should start with an uppercase letter.
Michael Borgwardt
2009-07-12 21:09:35