Exporting headless eclipse application causes 'The product's defining plug -in could not found' error

陌路散爱 提交于 2020-01-05 05:49:07

问题


Following the tutorial in this post, I could generate the headless eclipse plugin working in eclipse IDE.

By following Paul's recommendation, I tried to creating a .product file and exporting it.

Beforehand, I needed to make product configuration, and I followed the instruction in this site - http://wiki.eclipse.org/FAQ_How_do_I_create_an_Eclipse_product%3F

This is productConfiguration.product that was generated automatically.

<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product useFeatures="false" includeLaunchers="true">
   <configIni use="default">
   </configIni>
   <launcherArgs>
      <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
   </launcherArgs>
   <plugins>
   </plugins>
</product>

I followed the wizard:

However, I got this error message. I tried without Synchronize before exporting, I got another error.

What might be wrong?


回答1:


You need to add the org.eclipse.core.runtime.products extension to one of your plugins.

<extension id="foo" point="org.eclipse.core.runtime.products">
  <product application="com.example.FoorBarApp" name="foo">
     <property name="appName" value="foo"/>
  </product>
</extension>

and add the ID (plugin ID + "." + extension ID) to the product configuration.

<product id="myplugin.foo" ...


来源:https://stackoverflow.com/questions/12831648/exporting-headless-eclipse-application-causes-the-products-defining-plug-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!