A
Andreas Leitgeb
I'm faced with a compiled java-application (no source) that
attempts to read a certain file "foobar.properties" through a
FileInputStream.
I'd like to place that file in a certain directory
that also contains a few other .properties-files.
Can I control (by parameters added to "java -jar xyz.zip"),
where files without path are searched for from within the
application, or is changing the directory before starting
java the only way? I'd rather avoid binary-patching the
particular class file that opens the file.
attempts to read a certain file "foobar.properties" through a
FileInputStream.
I'd like to place that file in a certain directory
that also contains a few other .properties-files.
Can I control (by parameters added to "java -jar xyz.zip"),
where files without path are searched for from within the
application, or is changing the directory before starting
java the only way? I'd rather avoid binary-patching the
particular class file that opens the file.