How to add resources into jar file
问题 I need to add an exel file into my jar so it's portable. I know the answer is using getClass().getResource.... but i don't have a clue on how to go about using this code. I have the exel file in the src folder with my class files, it works in netbeans but not when i open the jar file on another PC. i get filenotfound exception here is the code i have used: public class WindageLogic { //.... public void GetValues() throws Exception { File exel=new File("src/Calculator/table1.xls"); Workbook w1