Hi – I am trying to learn to write plugins in Eclipse to run in Fiji and
have run into a problem I haven't been able to figure out. I am writing a plugin that needs to access other plugins such as Extract SIFT Correspondences, Extract SIFT Correspondences, and bUnwarpJ. I searched the list archives and found similar questions but nothing that quite answered my question. Following the ImageJ Eclipse HowTo instructions (http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:the_imagej_eclipse_howto) I was able to create another plugin that performs as expected in ImageJ with the plugin appearing under the plugin menu. For the more complex plugin I get an error “Plugin or class not found: SIFT_ExtractPointPoi”. I get the same error trying to access the Extract SIFT Correspondences plugin from the ImaegJ plugin menu. To add the Extract SIFT Correspondences plugin I copied the mpicbg_.jar file to the IJ/plugins directory. In the plugin I'm trying to run Extract SIFT Correspondences using IJ.run(). I then tried to build fiji using the Developing Fiji in Eclipse instructions (http://fiji.sc/wiki/index.php/Developing_Fiji_in_Eclipse). I can get fiji to run but for some reason some .jar files (such as compat.jar, fiji-lib.jar, fiji-scripting.jar, Script_Editor.jar...) mysteriously disappear from the fiji/jars and fiji/plugins directories so I have to keep replacing them for it to run again. In any case, when it is running I haven't been able to figure out how to develop my new plugin in fiji using eclipse. When fiji launches from Eclipse I don't see my plugin listed in the plugins menu. In summary I have found the plugin tutorials to be helpful but I can't figure out how to develop and debug a plugin using Eclipse that accesses another plugin. I have some experience writing scripts that access plugins but I'd like more flexibility. Any advice is welcome. All the best, Ned -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Ned,
> Hi – I am trying to learn to write plugins in Eclipse to run in Fiji and > have run into a problem I haven't been able to figure out. I am writing a > plugin that needs to access other plugins such as Extract SIFT > Correspondences, Extract SIFT Correspondences, and bUnwarpJ. I searched the > list archives and found similar questions but nothing that quite answered > my question. We have recently finished updating the Fiji build system to be compatible with Maven. This has a number of advantages, one of which is the ability to import Fiji plugins into Eclipse as Maven projects (File > Import > Existing Maven Projects). Note that you will need the "Eclipse for Java Developers" distribution with Eclipse 3.7 or later (4.2 works fine too)—or else you can install the M2E plugin manually into your Eclipse. To have your plugin depend on another plugin, simply add the other plugin as a Maven dependency in your pom.xml file (Eclipse has a graphical POM editor that helps with this). See the updated "Developing Fiji in Eclipse" page for further details: http://fiji.sc/Developing_Fiji_in_Eclipse In general, using Maven with your ImageJ plugin allows others to more easily reuse and build on your code. The ImageJ1 source code is also available for use with Maven from: git://github.com/fiji/imageja.git If you clone that link and then import into Eclipse (again: File > Import > Existing Maven Projects) you will see that the dependent Fiji plugins automatically change from a library dependency on ij.jar to a project dependency on the source code. Please let us know if you have any questions or problems with it! Regards, Curtis On Fri, Jun 29, 2012 at 12:47 PM, Ned Horning <[hidden email]> wrote: > Hi – I am trying to learn to write plugins in Eclipse to run in Fiji and > have run into a problem I haven't been able to figure out. I am writing a > plugin that needs to access other plugins such as Extract SIFT > Correspondences, Extract SIFT Correspondences, and bUnwarpJ. I searched the > list archives and found similar questions but nothing that quite answered > my question. > > Following the ImageJ Eclipse HowTo instructions ( > http://imagejdocu.tudor.lu/**doku.php?id=howto:plugins:the_** > imagej_eclipse_howto<http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:the_imagej_eclipse_howto>) > I was able to create another plugin that performs as expected in ImageJ > with the plugin appearing under the plugin menu. For the more complex > plugin I get an error “Plugin or class not found: SIFT_ExtractPointPoi”. I > get the same error trying to access the Extract SIFT Correspondences plugin > from the ImaegJ plugin menu. To add the Extract SIFT Correspondences plugin > I copied the mpicbg_.jar file to the IJ/plugins directory. In the plugin > I'm trying to run Extract SIFT Correspondences using IJ.run(). > > I then tried to build fiji using the Developing Fiji in Eclipse > instructions (http://fiji.sc/wiki/index.**php/Developing_Fiji_in_Eclipse<http://fiji.sc/wiki/index.php/Developing_Fiji_in_Eclipse> > **). I can get fiji to run but for some reason some .jar files (such as > compat.jar, fiji-lib.jar, fiji-scripting.jar, Script_Editor.jar...) > mysteriously disappear from the fiji/jars and fiji/plugins directories so I > have to keep replacing them for it to run again. In any case, when it is > running I haven't been able to figure out how to develop my new plugin in > fiji using eclipse. When fiji launches from Eclipse I don't see my plugin > listed in the plugins menu. > > In summary I have found the plugin tutorials to be helpful but I can't > figure out how to develop and debug a plugin using Eclipse that accesses > another plugin. I have some experience writing scripts that access plugins > but I'd like more flexibility. > > Any advice is welcome. > > All the best, > > Ned > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.**html<http://imagej.nih.gov/ij/list.html> > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |