Possible Duplicates:
Where on the file system was my java class loaded from?
How do I get the directory that the currently executing jar file is in?
How can i know .jar file directory within my program i want to use this directory to create another files in same directory which user save this .jar file