osgi.configuration.area.readOnly=true gives NoClassDefFoundError
If I enter the osgi.configuration.area.readOnly=true
in the config.ini I get a NoClassDefFoundError from one of our imported libs when I start my Eclipse RCP.
Based on this question I understand it is due to our nested jars that need the configuration area to unpack in. But isn't there a way to make sure this takes place in our osgi.instance.area
or some other place?
Yes, I could make sure to un-nest the nested jars, but that feels like a workaround that could fail next time we add a new lib dependency.
The config.ini file:
eclipse.application=(myApp)
osgi.bundles.defaultStartLevel=4
eclipse.product=(myProd)
osgi.splashPath=platform:/base/plugins/(开发者_StackOverflowrcp)
osgi.bundles=(cut list)
osgi.instance.area=@user.home/.myApp
osgi.locking=none
osgi.configuration.area.readOnly=true
An old question but but i came with the same problem. You can add "osgi.configuration.area.default={location}" in your config.ini file to manage the location you want OSGI to put your nested jars.
See this thread for more info : Eclipse RCP: How is the default name of the private configuration directory (created in ~/.eclipse when using a shared install) constructed?
精彩评论