Posted by
GeraldT on
Oct 26, 2016; 12:17pm
URL: http://imagej.273.s1.nabble.com/Please-help-me-with-compilating-plugins-in-Eclipse-tp5017486.html
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_", 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