File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Finding the .properties file in WAS4.0 and WSAD 4.0.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Finding the .properties file in WAS4.0 and WSAD 4.0.3" Watch "Finding the .properties file in WAS4.0 and WSAD 4.0.3" New topic

Finding the .properties file in WAS4.0 and WSAD 4.0.3

Sreenivasa Rao Pitchuka

Joined: Dec 24, 2002
Posts: 18
I'm unable to find the properties files from the Websphere Studio Application Developer (WSAD) 4.0.3
When I run them from the command propmt, it's working.
For example, in HelloWorld java, if I'm using, I placed the properties file and java file in the same directory and it's working from command propmt.But in WSAD, where should I place my properties files.
The same problem exists in WAS4.0
Where should I place my .properties files, so that my applications can read them. I dont want to give a absolute path.
Please reply ASAP
Thanks in advance,
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
This is a basic java issue; use the ClassLoader. Check the API -- you can get a URL for the file and get the real path from that as long as the .properties file is somewhere in the classpath.

"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The team, Newsletter 039.
I agree. Here's the link:
subject: Finding the .properties file in WAS4.0 and WSAD 4.0.3
It's not a secret anymore!