This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding property file to classpath

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • 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: 34375
345
Eclipse IDE Java VI Editor
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic