Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reference local files from a jar

 
carlos sanchez
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm developing a web app that packs files in a jar. I've got to configuration files & reference to local foldert that are stored in tomcat folder structure.
I'd like to prepare my class to work if I move it from one server to another, how would I reference this path? I mean, do the classes get expanded in a folder as /WEB-INF/lib/%packages referenced in the classes% or as a /WEB-INF/classes/%packages%.
Problem is trying to acces folders this way from the classes, like ../../../../../anotherFolder/whatever.txt
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!