|Set resource path [message #1059334]
||Fri, 17 May 2013 14:33
| Snehil Shrivastava
Registered: April 2012
I have exported my RCP application where resource files (XSD, XML, Icon etc.) are kept in same directory as shown below:
+ Resource Folder
+ XML File
+ Icon Files
My implementation is to open my output file by double clicking on it in RCP application. Now if my output file is kept is some path (apart from exe path) and I try to open by double clicking on it, RCP application opens but it is unable to find 'Resource Folder'. Exe is expecting resource folder in the same path from where I have opened my output file by double clicking on it.
Could anyone please let me know how I can point resource folder path where my exe is kept?
Note: I am accessing resource by directly mention relative path for example: File f = new File("Resource Folder/XML File/MyFile.xml").
Thanks in advance
Powered by FUDForum
. Page generated in 0.12632 seconds