SuperMoonster
Programmer
Hello everyone,
I wanna get the directory from where my application is running. Is there a way to do it?
I tried:
System.getProperty("user.dir");
But it returns me my linux user directory (/home/myname).
How can I make it return the dir from where the app is running? Thanks
I wanna get the directory from where my application is running. Is there a way to do it?
I tried:
System.getProperty("user.dir");
But it returns me my linux user directory (/home/myname).
How can I make it return the dir from where the app is running? Thanks