Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sreenivasa Rao Pitchuka
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 helloworld.properties, 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,
Sreenivas
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic