【问题标题】:Place Eclipse RCP Product plugins in a different folder将 Eclipse RCP 产品插件放在不同的文件夹中
【发布时间】:2012-07-21 13:19:08
【问题描述】:

是否可以为通常存在于 RCP 产品的 .exe 旁边的默认插件文件夹指定不同的文件夹?

正常设置:

Root
   |- product.exe
   |- product.ini
   |-- Plugins [Folder]
   | -- Configuration [Folder]

所需的设置:

Product
   |- product.exe
   |- product.ini
JarFiles [Folder]
   |- *.jar
Config
   |- config.ini

我已尝试根据设置 listed here 更新我的 product.ini 中的一些条目以使其正常工作,例如:

--launcher.library=@user.dir/../JarFiles

--launcher.library=../JarFiles

但是当我启动时出现错误提示:

The Product executable launcher was unable to locate its companion shared library.

我是否可以指定任何运行时参数来正确告诉 .exe Plugins 和 Configuration 文件夹位于其他位置?

【问题讨论】:

    标签: eclipse-plugin eclipse-rcp


    【解决方案1】:

    您的launcher.library 条目不完整。它必须指向directly to the plugin containing the launcher DLL,不仅指向你的插件文件夹,所以它应该看起来像

    --launcher.library
    ../JarFiles/org.eclipse.equinox.launcher.[your.operating.system][architecture][version]
    

    查看您的安装以获取占位符的特定条目。如果您现在还使用 -configuration 选项指向更改的配置文件夹,那么您就可以开始了。

    【讨论】:

    • 谢谢,我还发现启动器库(Equinox)必须存在于名为“Plugins”的文件夹中。 'JarFiles' 不能用作插件位置。同样,我包括了'-startup ../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar'
    猜你喜欢
    • 2018-02-27
    • 1970-01-01
    • 1970-01-01
    • 2012-12-07
    • 2012-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多