I have a very large/old/long running project that accesses file resources using paths that are relative to the launch directory (i.e. the application will only work if launched from a specific directory). When I need to debug the program I can launch it from eclipse and set the start directory using Run Configurations->->Working directory. I would like to be able to write a single Java class that will launch the main class from a specified directory. Is this possible and if it is how would I do it? I have found several related items including those shown below but can't seem to find the answer I'm looking for.
https://community.oracle.com/thread/1257595?start=0&tstart=0
http://www.javapractices.com/topic/TopicAction.do?Id=243