- 我在 netbeans 中加载了一个 jrxml 文件,该文件已成功加载。
但是当我将它部署为 jar 文件时,它会出现以下错误:
错误
net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: src \Reports\print.jrxml(The system cannot find the path specified)
代码
try
{
jasperdesign=JRXmlLoader.load("src/Reports/print.jrxml");
}
catch(Exception error)
{
Notify.showMessageDialog(null, ""+error+"", "Error Loading Appointment JasperForm", Notify.ERROR_MESSAGE);
}