Skip to main content

include external library

Comments

4 comments

  • Richard Moir

    Usually you would put a jar like that in a "lib" directory alongside your "src" directory. If you are running from an IDE then you will need to add it to the classpath in the project configuration also.

    0
  • Elisabeth Frank

    I want to run the plugin from inside Geneious. So no IDE involved.

    I need to know where to put the jar libraries so that they can be found during runtime, not compilation.

    0
  • Richard Moir

    Sorry for the misunderstanding.

    You need to build your plugin as a folder which contains your main jar alongside any other required jars. If you have a look at the build.xml files that are included with the sample plugins (we always recommend building new plugins on top of one of the examples), there is commented out code in there along with instructions for building your plugin as a folder. Your jars go where the build.xml mentions "ExtraFiles". If anything is unclear, let me know.

    For existing examples of this, have a look inside the bundledPlugins folder in your Geneious install directory. We have a few folder type plugins that contain additional jars.

    0
  • Elisabeth Frank

    Fantastic, that worked perfect! Thanks for your help on this!

    0

Please sign in to leave a comment.