Unsupported output warning

Hi,
When I run the following code:

importClass(Packages.ij.IJ);
importClass(Packages.ij.plugin.frame.RoiManager);
importClass(Packages.ij.measure.ResultsTable);
importClass(Packages.ij.ImagePlus);
importClass(Packages.ij.process.ImageProcessor);
importClass(Packages.ij.gui.Overlay);
importClass(Packages.ij.plugin.filter.ParticleAnalyzer);
importClass(Packages.ij.gui.Roi);
importClass(Packages.ij.plugin.filter.Analyzer);
importClass(Packages.ij.gui.OvalRoi);
importClass(Packages.ij.ImageStack);
importClass(Packages.ij.gui.ProfilePlot);
importClass(Packages.ij.gui.Line);
importClass(Packages.ij.gui.Plot);
importClass(Packages.ij.measure.CurveFitter);
importClass(Packages.ij.plugin.frame.Fitter);
importClass(Packages.ij.gui.ShapeRoi);
importClass(Packages.ij.gui.PolygonRoi);
importClass(Packages.ij.util.ArrayUtil);
importClass(Packages.ij.util.Tools);
importPackage(java.awt);

rm = RoiManager.getInstance();
if (rm==null) rm = new RoiManager();
imp = IJ.createImage("Untitled", "8-bit ramp", 2000, 2048, 1);
//IJ.setTool("oval");
imp.setRoi(new OvalRoi(345,189,249,189));
rm.addRoi(imp.getRoi());
//IJ.setTool("rectangle");
imp.setRoi(363,474,270,225);
rm.addRoi(imp.getRoi());
rm.select(0);
rm.setSelectedIndexes([0,1]);
rm.runCommand(imp,"Combine");
rm.addRoi(imp.getRoi());
rm.select(2);
imp.show();
compostRoi = rm.getRoi(2);

I get a warning message saying:
[WARNING] Ignoring unsupported output: result [ij.gui.ShapeRoi]

How should I change my code in order to avoid getting this warning?

Thanks,
Avital

1 Like

On Windows 10 and Linux Mint the JavaScript runs fine without an error message.

There were recently changes in the SciJava Common library to reduce the number of scenarios where such warnings appear.

What version of ImageJ are you running? Have you tried updating to the latest Java 8 version? Like @Bio7, I also do not see this warning when testing with the latest version of ImageJ (2.0.0-rc-54/1.51f).

Thanks, @ctrueden and @Bio7 - I’m using a Mac OSX Version 10.9.5, so I couldn’t use Fiji with Java 8 and had to use Java 6.

According to the system requirements, it should be possible to use Java 8 on any OS X system running 10.8 “Mountain Lion” or later.