Check out example codes for "get executable path java". It will help you in understanding the concepts better.

Code Example 1

final String dir = System.getProperty("user.dir");

Learn ReactJs, React Native from akashmittal.com