Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Application resource file location ?  RSS feed

 
jose chiramal
Ranch Hand
Posts: 266
  • 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
  • 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: 2907
1
Java Spring Ubuntu
  • 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
Boost this thread!