在 Jenkins 上构建 rcp 应用程序后启动文件 (.exe) 丢失
launch file(.exe) is missing after building rcp application on Jenkins
在将使用 eclipse 3.x (Indigo) 创建的 Eclipse rcp 应用程序迁移到 Eclipse 4.5.2 (Mars) 期间,运行 应用程序从 Eclipse 4.5.2 迁移时未发现任何问题。
此外,在使用 ant 文件在 Jenkins 上构建应用程序时,还会创建安装程序。但是安装程序安装后,启动应用程序的启动文件(.exe)丢失了。
此外,还有一个 *cli.exe(命令行可执行文件)存在。
但是在通过命令行 运行 之后,出现以下错误:
Error: Could not find or load main class org.eclipse.core.launcher.Main
可能是什么问题?我无法添加 Jenkins 的控制台输出,因为它非常大。
首先检查你生成的plugins
目录,有没有org.eclipse.equinox.launcher
包?如果没有,请执行以下操作:
如果您使用的是 feature 版本,请检查您的 feature.xml
如果 org.eclipse.equinox.launcher
丢失或使用了错误的版本。
如果您使用的是 插件 版本,请检查您的 ApplicationName.product
文件,如果 org.eclipse.equinox.launcher
丢失或使用了错误的版本。
检查你的 ant 文件,如果有一个 link 到以下包:
plugins/org.eclipse.equinox.launcher_1.x.x.x.jar
(x应该是某个版本)
如果是这样,可能使用了错误的版本。
终于解决了一个问题。.exe 在安装安装程序后正在创建。
原因是我缺少一些重要的插件,这些插件应该通过添加增量包(用于多平台构建)来添加。
有关增量包的更多信息,请参阅 https://wiki.eclipse.org/A_Brief_Overview_of_Building_at_Eclipse#Cross-platform_build
在将使用 eclipse 3.x (Indigo) 创建的 Eclipse rcp 应用程序迁移到 Eclipse 4.5.2 (Mars) 期间,运行 应用程序从 Eclipse 4.5.2 迁移时未发现任何问题。
此外,在使用 ant 文件在 Jenkins 上构建应用程序时,还会创建安装程序。但是安装程序安装后,启动应用程序的启动文件(.exe)丢失了。
此外,还有一个 *cli.exe(命令行可执行文件)存在。 但是在通过命令行 运行 之后,出现以下错误:
Error: Could not find or load main class org.eclipse.core.launcher.Main
可能是什么问题?我无法添加 Jenkins 的控制台输出,因为它非常大。
首先检查你生成的plugins
目录,有没有org.eclipse.equinox.launcher
包?如果没有,请执行以下操作:
如果您使用的是 feature 版本,请检查您的
feature.xml
如果org.eclipse.equinox.launcher
丢失或使用了错误的版本。如果您使用的是 插件 版本,请检查您的
ApplicationName.product
文件,如果org.eclipse.equinox.launcher
丢失或使用了错误的版本。检查你的 ant 文件,如果有一个 link 到以下包:
plugins/org.eclipse.equinox.launcher_1.x.x.x.jar
(x应该是某个版本)
如果是这样,可能使用了错误的版本。
终于解决了一个问题。.exe 在安装安装程序后正在创建。 原因是我缺少一些重要的插件,这些插件应该通过添加增量包(用于多平台构建)来添加。 有关增量包的更多信息,请参阅 https://wiki.eclipse.org/A_Brief_Overview_of_Building_at_Eclipse#Cross-platform_build