I am new to java.
I have a directory structure
product/
conf/
classes/com/../..
conf/contains the configuration file, and in classes/I have my application.
How can I ensure from internal java code that I can find the file in conf/, even though I execute it (for example, from eclipse, from different directories, from crontab, etc.).
PS
Files in conf/are not resources, as they must be edited by the user. Is there any way to find out where mine is .class, so I can use the relative path for this directory to access my directory (e.g. MY_CLASS_DIR /../../../../ conf)
source
share