0

Im trying to load a .jasper file to generate pdf. The .jasper file is located in the package of the project.(Not externally in the drive) Its working in local, but when I deploy the same project in the server, its not generating the pdf. Im loading the file like

 File f = new File(MyUtil.class.getresource("<path of the .jasper>").asFile();

Its returning the total path of the file i.e. from D:/workspace/

How can I handle the same in server?

shaik sha
  • 3
  • 3

0 Answers0