Hi
I have a java application "app" which has a dependency of "dep.jar". "dep.jar" has a configuration file - "conf.properties" which is copied and packaged into dep.jar. The problem is that during running of "app", "conf.properties" cannot be found.
how should I specify the path to "conf.properties" (in the code of "dep.jar") so that it will be found on runtime?
Ronen.
To be more specific: I do not need the file as InputStream but I need the path to the file. specifically I need it to configure JMX:
HashMap<String, Object> env = new HashMap<String, Object>();
...
env.put("jmx.remote.x.password.file", "password.properties");
Where the "password.properties" is the configuration file needed at runtime. This code is in the jar file and not in the application. the "password.properties" is located in the jar file after I put it in the resources but how do I access it in runtime?