Register / Login
Win a copy of
Cross-Platform Desktop Applications: Using Node, Electron, and NW.js
this week in the
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
file locations in Netbeans project and in glassfish
posted 6 years ago
I am writing a web servce using a configuration file:
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
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
Read Text File Using Relative Path.
referencing csv/text file for Java EE web application
Incorrect paths in Netbeans
Returning array To Method