我有一个插件,它是片段A和B的主机.我使用片段A中的Export-Package头导出包.希望我可以使用Import-Package头在片段B中导入该包.但PDE报告说依赖关系尚未解决.完全可以使用这种情况吗?以下文章http://www.eclipse.org/forums/index.php/t/238204/确认它是.
任何帮助将不胜感激.
感谢和问候,
Setya
我正在使用OrientDB 2.1.9并创建了名为"TimespentEvents"的地理图数据库.
尝试使用JDBC驱动程序在同一台计算机上使用JDBC驱动程序与URL'jdbc:orient:remote:localhost/TimespentEvents'和用户/密码admin/admin进行连接时遇到以下异常:
Caused by: com.orientechnologies.orient.core.exception.OConfigurationException: Error on opening database: the engine 'remote' was not found. URL was: remote:localhost/TimespentEvents. Registered engines are: [plocal, memory]
Run Code Online (Sandbox Code Playgroud)
将URL更改为"jdbc:orient:plocal:TimespentEvents"时,错误变为:
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage 'TimespentEvents' because it does not exist in path: localhost/TimespentEvents
Run Code Online (Sandbox Code Playgroud)
下面是我在类路径中包含的jdbc驱动程序jar:
任何帮助将不胜感激.
感谢和问候,
Setya
我的应用程序从属性文件中获取类名.由这些类名表示的类可以驻留在某些未知的OSGI包中,因此为了实例化它们,我首先必须找到这些类所属的包.我正在考虑从BundleContext#getBundles获取所有已安装的bundle,这意味着我必须在AbstractUIPlugin #start中获得对BundleContext的引用.但我不确定持有对BundleContext的引用是否正确,因为它只应该在start方法中使用.因此,我需要OSGI专家提供有关获取捆绑包列表的替代方案的建议.
任何帮助将不胜感激.
问候,
Setya