Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Set resource path(How to load resources which are kept in same folder as exe)
Set resource path [message #1059334] Fri, 17 May 2013 14:33
Snehil Shrivastava is currently offline Snehil ShrivastavaFriend
Messages: 17
Registered: April 2012
Junior Member
Hello Everyone,

I have exported my RCP application where resource files (XSD, XML, Icon etc.) are kept in same directory as shown below:
Product Folder
 - Product.exe
 + 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
Previous Topic:Language Packs dont work
Next Topic:How can one remove the QuickAccess bar in a RCP 4.2.2?
Goto Forum:

Current Time: Fri Jun 22 02:09:50 GMT 2018

Powered by FUDForum. Page generated in 0.01282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top