File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Adding property file to classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Adding property file to classpath" Watch "Adding property file to classpath" New topic
Author

Adding property file to classpath

Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
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!


Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31073
    
232

Prakash,
You can use an absolute path for the directory containing the property file.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
sumit thakral
Greenhorn

Joined: Feb 02, 2005
Posts: 1
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
 
subject: Adding property file to classpath