问题描述
我有一个Eclipse RCP应用程序,我正在努力安装一个我已经创建的插件,应该单独部署到上述应用程序。这样做,我将应用程序作为 ./ App -console
启动,当它停止加载时,我键入:
安装文件://URLTOjAR/plugin.jar
它返回一个插件ID(让我们说 288
),所以我以后输入:
start 288
此后,插件运行正常,但是当我重新启动应用程序,通过使用ss我只能看到插件只有已解决,但我希望它开始。
有没有办法自动化这个?
安装并启动的软件包应该在下一次启动时启动。
当框架尝试启动捆绑包时,激活程序会抛出异常,并保持在RESOLVED状态。检查日志。也许该软件包处理好的服务,在启动时尚未提供的资源。
I have an Eclipse RCP application, and I am trying with no luck to install a plugin I have created that should be deployed separately to the aforementioned application.
To do so, I start the application as ./App -console
, and when it has stopped loading, I type:
install file://URLTOjAR/plugin.jar
It returns me a plugin ID (lets say 288
), so I type afterwards:
start 288
After this, the plugin is working fine, but when I restart the application, by using ss I only can see that the plugin is only "Resolved", but I'd like it to be started.
Is there a way to automate this?
The installed and started bundle should be started on the next start.
Maybe the activator throws an exception when the framework tries to start the bundle and it remains in RESOLVED state. Check the logs. Maybe the bundle doesn't handle well the services, resources which are not (yet) available when it's starting.
这篇关于添加自动启动插件到eclipse RCP应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!