title: File location shows eclipse installation directory instead of eclipse workspace
body: <p>When I try to find the location of a file, it shows eclispe installation directory and displays the output as below. How to get the full path of a file in eclipse? I am stuck with this issue. Your help is much appreciated. </p>
  
  <pre><code>File file = new File("icon_4.png");
  System.out.println(" absolute path:" + file.getAbsolutePath());
  </code></pre>
  
  <p>Output: E:\Softwares\eclipse-jee-photon-M6-win32-x86_64\eclipse\icon_4.png</p>