External jars in eclipse plug-in

后端 未结 6 1732
被撕碎了的回忆
被撕碎了的回忆 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:55

    1. Copy the required external JAR files into a folder in your plug-in project; I like to call this folder lib, but whatever works for you.
    2. ..but as apposed to Zsolt Török (his solution did not work for me) I double-clicked on the plugin.xml, went to the build tab, at the bottom, I clicked Add JARs..., and hey presto, it showed my project, and I then navigated to lib and included the external jar, as per step 1.

提交回复
热议问题