[21:02] hi all [21:02] hi [21:02] hi nthykier [21:02] i have one question [21:03] Unless it is a question about how to code in Java, I might have an answer [21:03] :) [21:04] I have created a test.jar file that will execute "pwd" command and will write it to pathFile. I am able to run the test.jar by double clicking on it. location of test.jar is "/home/akashm/Desktop/IDE/test/test.jar".Now I have following problems- [21:04] 1. If I run test.jar from shell i.e. [21:04] $java -jar test.jar [21:04] I get "/home/akashm/Desktop/IDE/test/" as output. [21:04] 2. If I run test.jar by double clicking it then I get [21:04] "/home/akashm" as output. [21:05] I think this is pretty standard behaviour actually. Programs that you double click have their current dir set to your $HOME as I recall [21:06] :'( [21:06] eqv to doing (something like): cd ~ && java -jar /home/akashm/Desktop/IDE/test/test.jar [21:06] so, what should i do to come out of this scenario? [21:07] Depends on what you are trying to do [21:10] If you are trying to find resources or the path to the "test.jar" then it is possible. However, getting the exact code to accomplish, you may want to use google or #java (on this network) - either of them may know how to do that [21:10] btw, I believe you have a similar issue on Windows (not that your average Windows user is likely to use the terminal to run the jar file) [21:12] yeah [21:13] even i dont want user to run my jar in terminal [21:18] shouldn't matter how they run it [21:18] (unless it is a webapp or something similar)