Best Practice: Plugins with Native Libraries

26 views
Skip to first unread message

Justin Stoecker

unread,
May 25, 2011, 12:37:14 AM5/25/11
to cytoscape-discuss
Hi,

I'm working on a plugin that uses an external library that uses
several JNI calls to native libraries. I understand there are some
changes coming to Cytoscape 3 on how plugins are handled, but for now
I would like to target v2.8.1. I'm able to load my plugin successfully
if I put the external libraries in the plugins/ directory and the
native libraries in the main cytoscape directory. However, this
doesn't seem like an ideal solution.

Is there currently a better solution to this problem?

Thanks,
Justin

Peng-Liang Wang

unread,
May 25, 2011, 5:02:31 PM5/25/11
to cytoscap...@googlegroups.com
I think what you did is correct. We do not have better solution.
 
For Cytoscape 2.X, to add plugin dependency, you can (1) put external lib in Cytoscape lib or plugins (2) unjar external lib and put them togather in the same jar as your plugin. If you develop your plugin for yourself, then use (1) is fine, if you want distribute your plugin to many users, then use (2).

Peng

 

--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To post to this group, send email to cytoscap...@googlegroups.com.
To unsubscribe from this group, send email to cytoscape-disc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cytoscape-discuss?hl=en.


Reply all
Reply to author
Forward
0 new messages