From this image, when i run this class as Java application, it works perfectly fine.
I have created a executable jar file and saved in Downloads folder and when i run the jar, i am getting "java.io.FileNotFoundException: /Users/uanem/Downloads/testng.xml (No such file or directory)"
How to get my project's folder path and refer this testng.xml irrespective from where i am running jar file?