In my program I want to execute some function with different working directory (I've loaded JAR which working with files in current directory and want to execute it)
Is there a way to execute Runnable or Thread or some else object with setting working directory?