0

Packaging jar file with external file dependency

I have a java project which reads data from external excel file that is present in the project's directory. I made a jar file but when i ran it, i got "FileNotFoundException". My jar file isn't able to access external excel file. How can i package excel file with jar file so that it is able to access it?

10th Mar 2019, 8:00 PM
Yousaf
Yousaf - avatar
1 Resposta
0
Thank you for your response. Actually my problem was solved. I use intellJ IDEA to build jar file and i wanted to package excel file inside jar file because it was a requirement. Although I know if i had kept jar file and excel file in same directory then it would have worked.
13th Mar 2019, 5:17 PM
Yousaf
Yousaf - avatar