- I am loading an jrxml file in netbeans which is succefully loaded.
But when I'm deploying it as a jar file it gives the below error:
Error
net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: src \Reports\print.jrxml(The system cannot find the path specified)
Code
try
{
jasperdesign=JRXmlLoader.load("src/Reports/print.jrxml");
}
catch(Exception error)
{
Notify.showMessageDialog(null, ""+error+"", "Error Loading Appointment JasperForm", Notify.ERROR_MESSAGE);
}