I want to run a Linux program that's in my current directory from my Java program. The program is called "player".
The problem I seem to have is that this Linux program is not in the PATH.
I figured I could add "./" as a prefix, but it didn't work:
Runtime.getRuntime().exec("./player");
If I put "player" into my "bin" directory is does work, so I figure it's a PATH problem.
So, how do I add the current directory to my path?
I want to be able to distribute this program, so it won't be possible to go in an edit each users PATH manually, etc.
Thanks,
Drew
The problem I seem to have is that this Linux program is not in the PATH.
I figured I could add "./" as a prefix, but it didn't work:
Runtime.getRuntime().exec("./player");
If I put "player" into my "bin" directory is does work, so I figure it's a PATH problem.
So, how do I add the current directory to my path?
I want to be able to distribute this program, so it won't be possible to go in an edit each users PATH manually, etc.
Thanks,
Drew