I need to get the application's directory with name. For example, if my java application is working at C:\Program Files\example1.exe I need to get it as "C:\Program Files\example1.exe". Or is it working at C:\Windows\example2.exe I need to get it as "C:\Windows\example2.exe" . How can I do it?
            Asked
            
        
        
            Active
            
        
            Viewed 63 times
        
    1 Answers
0
            
            
        You can use System.getProperty("user.dir") to find where is your working directory.
 
    
    
        yilmazburk
        
- 907
- 9
- 17
- 
                    Thanks and how can I get the .jar's name. – Castige Oct 27 '13 at 11:36
