Login  Register

ImageJ plugin for running compiled user plugins (.class files)

Posted by Burger Wilhelm on Oct 09, 2007; 6:13pm
URL: http://imagej.273.s1.nabble.com/ImageJ-plugin-for-running-compiled-user-plugins-class-files-tp3698239.html

Hello!

With the new Java 5 features being widely used, the obsolence of the SDK-supplied compiler (in tools.jar) has become a growing annoyance. I therefore always use an external Java compiler (such as Eclipse) to compile the plugin code into .class files, which I they then execute from ImageJ. Unfortunately, the current version of ImageJ asks for the compiler to be installed even for loading and exectuting .class files.
 
As a remedy, I wrote a simple plugin that lets you execute other plugins, similar to the "Compile-and-Run" command in ImageJ, but only works on compiled plugin (.class) files and thus does NOT require the Java compiler to be installed (usually found in tools.jar).

The Java source file can be found here:
http://webster.fh-hagenberg.at/staff/burger/imagej/index.html or
http://webster.fh-hagenberg.at/staff/burger/imagej/plugins/Plugin_Run_Only.java

Hope this is helpful, though I am sure Wayne already has a much more elegant solution for this.

Regards,
Wilhelm Burger
www.imagingbook.com