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

Adding property file to classpath

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
how can i add a property file which is not in my ear, to the class path in Websphere 5. There is an option of adding Library, but that expects only jar files.
In WSAD there was an option for adding external folders to the class path, but some how i am unable to locate similar option in Websphere Server.

Please help!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33696
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prakash,
You can use an absolute path for the directory containing the property file.
 
sumit thakral
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Add your properties file to the Java Source folder of your webapp. Rebuild the project. These properties files should get copied to WEB-INF/classes after the successful rebuild. Verify that as well.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic