how to build a java project to be moved to a new location without changing the paths
<p>I have written a java program </p>

<ul>
<li>generates lots of files (say txt files) in different directories </li>
<li>and then reads the files and operates on them</li>
</ul>

<p>I have exported the project as a runnable jar.</p>

<p>I need to run the jar on a remote server, obviously PATHs are not the same</p>

<p>What options do I have </p>

<ul>
<li>Change path locations </li>
<li>Or is there another way out ?</li>
</ul>

<p>Additionally I use different external programs that generate more files. And my program needs to read these files too.</p>
