I have a servlet and inside the WEB-INF/lib directory I have a jar file. This jar is made from a project I am working on. The code in the project executes fine and uses txt files in its main directory. Java code calling these files don't need to add any path, IE: new FileReader("file.txt").
The problem is when I call the servlet it keeps throwing exceptions it can't find those txt files required by the jar. I have placed the txt files in the following locations so far with no luck:
- Main Directory
- Source Folder
- Servlet Package
- WebContent
- WEB-INF
- WEB-INF/lib
- META-INF
I think I've exhausted all the possible places the txt files could go. Where on earth is the jar file looking for them?
Thank you