Eclipse RCP应用程序无法启动

时间:2022-04-01 20:33:20

I have an Eclipse RCP app running on Java 6. When I try to run the product configuration from within Eclipse, it silently terminates almost immediately. No error is reported in the console. I've tried setting breakpoints in the IApplication and in the Activator, and neither are reached.

我有一个在Java 6上运行的Eclipse RCP应用程序。当我尝试从Eclipse中运行产品配置时,它几乎立即无声地终止。控制台中未报告任何错误。我已经尝试在IApplication和Activator中设置断点,但都没有达到。

I know I don't have much specific information here, but can anyone give me any pointers on where I might start looking to diagnose the problem?

我知道我这里没有太多具体信息,但任何人都可以给我任何关于我可能开始寻找诊断问题的指示吗?

3 个解决方案

#1


1  

Have you checked the logs in runtime/.metadata folder?,

Also make sure to validate all plugins in the runtime. Having them as a dependency doesn't necessarily mean they are added to the runtime. This is probably the biggest gotcha when launching an rcp app.

您是否已检查runtime / .metadata文件夹中的日志?还要确保验证运行时中的所有插件。将它们作为依赖项并不一定意味着它们被添加到运行时。这可能是启动rcp应用程序时最大的问题。

#2


2  

I wasn't able to locate the runtime/.metadata folder, but this very helpful post directed me to add -consoleLog and -noExit to my runtime arguments, which dumped the errors to the console. Configuration problems.

我无法找到runtime / .metadata文件夹,但这个非常有用的帖子指示我将-consoleLog和-noExit添加到我的运行时参数中,这会将错误转储到控制台。配置问题。

#3


0  

I experienced this problem after migrating my RCP app from 3.7 to 4.2. The solution for me was to delete to runtime-product.product directory and re-run.

将我的RCP应用程序从3.7迁移到4.2后,我遇到了这个问题。我的解决方案是删除到runtime-product.product目录并重新运行。

#1


1  

Have you checked the logs in runtime/.metadata folder?,

Also make sure to validate all plugins in the runtime. Having them as a dependency doesn't necessarily mean they are added to the runtime. This is probably the biggest gotcha when launching an rcp app.

您是否已检查runtime / .metadata文件夹中的日志?还要确保验证运行时中的所有插件。将它们作为依赖项并不一定意味着它们被添加到运行时。这可能是启动rcp应用程序时最大的问题。

#2


2  

I wasn't able to locate the runtime/.metadata folder, but this very helpful post directed me to add -consoleLog and -noExit to my runtime arguments, which dumped the errors to the console. Configuration problems.

我无法找到runtime / .metadata文件夹,但这个非常有用的帖子指示我将-consoleLog和-noExit添加到我的运行时参数中,这会将错误转储到控制台。配置问题。

#3


0  

I experienced this problem after migrating my RCP app from 3.7 to 4.2. The solution for me was to delete to runtime-product.product directory and re-run.

将我的RCP应用程序从3.7迁移到4.2后,我遇到了这个问题。我的解决方案是删除到runtime-product.product目录并重新运行。