简体   繁体   中英

Reading files in exported rcp eclipse product

I am developing an Eclipse RCP application and in some cases I need to read some template files where I have stored inside some of the bundles.

I tried many approaches and they work ok when executing the code but without sucess when I export the product since probably the bundles are exported as jars and it cannot access the stored folders/files...

I tried both approaches suggested here: http://www.vogella.com/blog/2010/07/06/reading-resources-from-plugin/

Also it will be much easier if I could see these errors before exporting the product if you have any suggestions

Ok, so the problem was that I didn't select the folder with the files in the manifest.mf for the build.

But it was really confusing because code runs when not exported which means it doesnt use the build configuration for the plugin.

http://www.eclipsezone.com/eclipse/forums/t115424.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM