FileInputStream and FileNotFound Exception

后端 未结 5 1964
慢半拍i
慢半拍i 2021-01-28 11:05

I am trying to retrieve a jrxml file in a relative path using the following java code:

 String jasperFileName = \"/web/WEB-INF/reports/MemberOrderListReport.jrxm         


        
5条回答
  •  一个人的身影
    2021-01-28 11:54

    check that your relative base path is that one you think is:

    File f = new File("test.txt"); System.out.println(f.getAbsoluteFile());

提交回复
热议问题