This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reference local files from a jar  RSS feed

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!