Skip to main content



      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 10:33
Eclipse UserFriend
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: Wed Mar 19 03:28:17 EDT 2025

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

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

Back to the top