As a previous post suggested I used IKVM to create a .dll version of ImageJ to use in .Net environment.
I have created a simple plugin that takes some string as input and prints out "Hello " + str.
I tried the IJ.runPlugin(...) command but I cannot get it to run this plugin. Basically either ClassNotFoundException or nothing happens.
If someone has tried this approach and has been successful please give me syntax to run a plugin.
[code]
//.Net
IJ.runPlugIn("My Plugin HelloWorld", "test");
Console.WriteLine("done " + o);
//plugin
import ij.*;
import ij.process.*;
import ij.gui.*;
import java.awt.*;
import ij.plugin.*;
public class My_Plugin_HelloWorld implements PlugIn {
public void run(String arg) {
String x = "Hello world! " + arg + ", " + arg;
IJ.showMessage("My_Plugin", x);
IJ.runPlugIn("Red_And_Blue", "");
}
}
[/code]
[output]
[/output]
Thanks