So guys, as what the title implies. I cant access my report when i clean and build my program to a jar file to be deployed. I tried surfing the internet for possible solutions but none of them has gone right. So below is what i did to try to access the report inside the jar file:
URL reportURL = getClass().getClassLoader().getResource("assessmentrecordsystem\\reports\\report1.jrxml");//returns nothing
reportInputStream = this.getClass().getClassLoader().getResourceAsStream("\\reports\\report1.jrxml");//all so returns nothing
What did i miss??
This is what my jar file contains: