aspose file tools*
The moose likes I/O and Streams and the fly likes reference local files from a jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "reference local files from a jar" Watch "reference local files from a jar" New topic
Author

reference local files from a jar

carlos sanchez
Ranch Hand

Joined: Jan 29, 2003
Posts: 45
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


Don't ever let your computer know you're in a hurry! :nono:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reference local files from a jar