External jars in eclipse plug-in

后端 未结 6 1745
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 15:08

I\'m creating an eclipse plug-in and I\'m having trouble with external jars. In my plug-in I start an application which requires some external jars. What do I have to do to expo

6条回答
  •  时光取名叫无心
    2021-02-04 15:58

    This is an easy way, though it does create an additional plug-in.

    In Eclipse:

    • Choose New>Other, then Plug-in Development>Plug-in from existing JAR archives.
    • Choose the jars you want to include.
    • On the next page, configure the plug-in.
    • In your plug-in's manifest, add the new plug-in as a dependency.
    • In your plug-in's Properties, add the new project under Java Build Path on the Projects tab.

    Edit: You may be able to combine the jars into your plug-in by instead combining both suggestions of Zsolt and user714965 below.

提交回复
热议问题