include external library
I am trying to develop a plugin that uses an external library, but when running the plugin, the library wont load (see stack trace below).
Where do I have to put the library jar file on the file system and/or where do I have to include the library in the build process of the plugin so Geneious can find it.
So far, I included it in the build.xml classpath and I moved the library jar to ../GeneiousFiles/lib and to .../Geneious/lib, but this did not help.
Thanks for your help!
Caused by: java.lang.ClassNotFoundException: com.biomax.bioxm.remotecli.BioXMCli
... 15 more
Please sign in to leave a comment.
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.
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.
Fantastic, that worked perfect! Thanks for your help on this!