http://imagej.273.s1.nabble.com/Please-help-me-with-compilating-plugins-in-Eclipse-tp5017486p5017487.html
I did it!!!!! After all the years first time it worked!! I only had to use the minimal project (
). I did not read down there because I thought the error was earlier in the process. I now used ImageJ and not Fiji source.
Any advice here? Besides that I am happy, i don't know how many hours I have tried ....
Gerald R. Torgersen
>-----Original Message-----
>From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
>Gerald Ruiner Torgersen
>Sent: Wednesday, October 26, 2016 2:17 PM
>To:
[hidden email]
>Subject: Please help me with compilating plugins in Eclipse
>
>Hello everybody,
>
>Since Fiji removed the tools.jar I cannot compile from the editor anymore. So
>now I am (again) trying to use the Eclipse, JDK combo.
>I have managed to import the Fiji source as maven project and run it from Eclipse.
>I followed the instructions from:
>
http://imagej.net/Developing_ImageJ_in_Eclipse. I am now trying to make a
>PluginFrame plugin.
>
>This is what I have done:
>- created new source folder with the name: MandibularAssymetryMeasure_
>- inside that catalog I made two class files:
>Main Plugin class:
>import ij.*;
>import ij.plugin.frame.*;
>
>public class MandibularAssymetryMeasure_ extends PlugInFrame {
>
> private static final long serialVersionUID = 4723432002956229961L;
>
> public MandibularAssymetryMeasure_() {
> super("MandibularAssymetryMeasure_");
> }
>
> public void run(String arg) {
> IJ.log("Hello World!");
> }
>
>}
>Launcher:
>import fiji.Debug;
>
>public class Tester {
>
> public static void main(String[] args) {
> Debug.run("MandibularAssymetryMeasure_", null);
> }
>
>}
>
>They both reside in the fiji-master folder. And I created the file plugins.config in
>the fiji-master\resources folder:
># Name: MandibularAssymetryMeasure_
># Author: Gerald Torgersen
># Version: 0.1
># Date: 2016/10/xx
># Requires: ImageJ 1.51f
>
>Plugins>MandibularAssymetryMeasure_, "Run MandibularAssymetryMeasure_",
>Plugins>MandibularAssymetryMeasure_("run")
>
>I run the the Tester class as a Java application and it starts Fiji, but I get an error
>message: Unrecognized command: "MandibularAssymetryMeasure_"
>
>I have not made a special pom-file for that plugin. I do not know how, or where
>to put it. Please help me somebody. The Norwegian dental health depends on my
>ImageJ programming ;-)
>
>Mvh
>Gerald R. Torgersen
>IT-seksjonen,
>Det odontologiske fakultet, Universitetet i Oslo Faculty of Dentistry Universitetet i
>Oslo, University of Oslo
http://www.odont.uio.no/personer/adm/fak/gerald>
>--
>ImageJ mailing list:
http://imagej.nih.gov/ij/list.html