In a nutshell i have a java program that takes parameters from an XML file. I made a .jar file from my java project. Within the java project i have the XML file set to a static directory, i'd like to be able to change that so the jar would look for the XML within the directory it's in. Is there any solution to this? Don't really want to use a file chooser either.