FileNotFoundException

I want to access the MYREPORT.jrxml file in the src folder.
File file = ResourceUtils.getFile(“/MYREPORT.jrxml”);

I get this error: net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: \MYREPORT.jrxml (The system cannot find the file specified). Tried a couple of other methods from online search but all in vain. Where could I be going wrong? Thank you

Thanks Olli T. InputStream resourceAsStream = VaadinServlet.getCurrent().getServletContext() .getResourceAsStream(“/assets/MYREPORT.jrxml”);