Program not running from expected directory?
Posted
by twpc
on Stack Overflow
See other posts from Stack Overflow
or by twpc
Published on 2010-05-05T13:56:11Z
Indexed on
2010/05/05
13:58 UTC
Read the original article
Hit count: 205
java
I am working on a web-based program, using Java. I am not sure exactly how to phrase this, but I expect the program to be running from within the c:/Resin/webapps/apps directory. However, when I reference a file in the program like this: "../files/randomfile.pdf", it cannot find that file. It works when I reference it like this: "c:/Resin/webapps/files/randomfile.pdf". How to I change the "running location"? (And what is the technical term for this?)
© Stack Overflow or respective owner