File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application resource file location ?

 
jose chiramal
Ranch Hand
Posts: 266
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it required that the application resources file must be under WEB-INF/classes ?? Can i place it in someother lcoation and include that path in CLASSPATH environment variable ?

Thanks.
 
jose chiramal
Ranch Hand
Posts: 266
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Re framing the question .

Can i place application resources file in anyfolder and then place the path in the "classpath" environment variable ? Or is it required that i should place it only under WEB-INF/classes.

I have been reading that we can place it only under WEB-INF/classes.

Thanks
 
Sagar Rohankar
Ranch Hand
Posts: 2904
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I know was, the application resource file MUST be in a classpath, so better you try putting the file in any directory and put that dir in CLASSPATH environment variable.

Try this and tell me too.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic