Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

file locations in Netbeans project and in glassfish  RSS feed

 
D. Formenton
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am writing a web servce using a configuration file:

...
prop.load(new FileInputStream(new File("ws.cfg")));
...

My problems are:

A) where, phisically, I have to put the file in the directory structure of project?

B) how I have to declare the relative path as glassfish, at run time, can read it?

For example, if I put the file in ..\src\conf (the directory is already existent by default) how i have to declare the relative path in the code to find it at run time?

I use Netbeans 7.0 and Glassfish 3.1

thank you!

Domenico
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!