Relative filepath to access resources
问题 I am quite new to Eclipse 4, RCP and SWT and I am stuck on this issue : I want to access image resources from code with a relative filepath. Problem is that the default location ./ is set to my home directory /home/name/ (I'm using Ubuntu). I have found that by creating a new File and printing its CanonicalPath. I am used to having the default location set to the project directory, such as /home/name/workspace/project/ , which is, from what I've seen so far, the default behavior in Eclipse /