[ImageJ-devel] failed to run imageJ2

Mohamed Tleis mohammedtleis at hotmail.com
Fri Jun 14 07:02:45 CDT 2013


Dear ImageJ Developers,

I downloaded the latest version of imageJ2 beta 7, and created a very 
simple program to run imageJ as follows:

public static void main(String args[])
{
     final ImageJ ij = imagej.Main.launch(args);
}

Unfortunately I failed to do so (check full output below).
Apparantly it is not able to locate the following class:
java.lang.NoClassDefFoundError: io/scif/io/img/ImgIOException
must I include an additional library?


WARN: Ignoring non-Maven build directory: 
/home/mohamed/NetBeansProjects/selectCellPlugin/build/classes
[INFO] Created service: org.scijava.log.StderrLogService
[INFO] Created service: org.scijava.thread.DefaultThreadService
[INFO] Created service: org.scijava.event.DefaultEventService
[WARNING] Invalid service: imagej.console.DefaultConsoleService
[INFO] Found 356 plugins.
[INFO] Created service: org.scijava.plugin.DefaultPluginService
[INFO] Created service: imagej.module.DefaultModuleService
[INFO] Created service: imagej.command.DefaultCommandService
[INFO] Created service: imagej.core.commands.app.CoreAppEventService
[INFO] Created service: org.scijava.object.DefaultObjectService
[INFO] Created service: imagej.display.DefaultDisplayService
[INFO] Created service: imagej.data.display.DefaultImageDisplayService
[INFO] Created service: imagej.core.commands.typechange.TypeChangeService
[INFO] Created service: 
imagej.core.commands.restructure.SplitChannelsContextMonitor
[INFO] Created service: imagej.menu.DefaultMenuService
[INFO] Created service: imagej.options.DefaultOptionsService
[INFO] Configuring platform: imagej.platform.DefaultPlatform
[INFO] Created service: imagej.platform.DefaultPlatformService
[INFO] Created service: imagej.script.DefaultScriptService
[INFO] Found 2 TextFormat plugins.
[INFO] Created service: imagej.text.DefaultTextService
[INFO] Found 2 applications.
[INFO] Created service: org.scijava.app.DefaultAppService
[INFO] Created service: org.scijava.app.DefaultStatusService
[INFO] Found 25 Tool plugins.
[INFO] Created service: imagej.tool.DefaultToolService
[INFO] Found [class='imagej.ui.swing.widget.SwingMessageWidget', 
priority=100.0, enabled=true, pluginType=InputWidget, 
class='imagej.ui.swing.widget.SwingChoiceRadioWidget', priority=1.0, 
enabled=true, pluginType=InputWidget, 
class='imagej.ui.swing.widget.SwingTextFieldWidget', priority=0.0, 
enabled=true, pluginType=InputWidget, 
class='imagej.ui.swing.widget.SwingButtonWidget', priority=0.0, 
enabled=true, pluginType=InputWidget, 
class='imagej.ui.swing.widget.SwingColorWidget', priority=0.0, 
enabled=true, pluginType=InputWidget, 
class='imagej.ui.swing.widget.SwingNumberWidget', priority=0.0, 
enabled=true, pluginType=InputWidget, 
class='imagej.ui.swing.widget.SwingObjectWidget', priority=0.0, 
enabled=true, pluginType=InputWidget, 
class='imagej.ui.swing.widget.SwingToggleWidget', priority=0.0, 
enabled=true, pluginType=InputWidget, 
class='imagej.ui.swing.widget.SwingChoiceWidget', priority=0.0, 
enabled=true, pluginType=InputWidget, 
class='imagej.ui.swing.widget.SwingFileWidget', priority=0.0, 
enabled=true, pluginType=InputWidget] InputWidget plugins.
[INFO] Created service: imagej.widget.DefaultWidgetService
[INFO] Created service: org.scijava.event.DefaultEventHistory
[INFO] Created service: imagej.data.animation.DefaultAnimationService
[INFO] Found 2 AutoscaleMethod plugins.
[INFO] Created service: imagej.data.autoscale.DefaultAutoscaleService
[INFO] Created service: imagej.data.DefaultDatasetService
[INFO] Created service: imagej.data.display.DefaultInputService
[INFO] Created service: imagej.ui.common.awt.AWTRenderingService
[INFO] Created service: imagej.data.display.DefaultOverlayService
[INFO] Created service: imagej.data.display.DefaultWindowService
[INFO] Created service: imagej.data.lut.DefaultLUTService
[INFO] Created service: imagej.data.measure.DefaultMeasurementService
[INFO] Created service: imagej.data.measure.DefaultStatisticsService
[INFO] Found 13 CalculatorOp plugins.
[INFO] Created service: imagej.data.operator.DefaultCalculatorService
[INFO] Created service: imagej.data.sampler.DefaultSamplerService
[INFO] Found 17 ThresholdMethod plugins.
[INFO] Created service: imagej.data.threshold.DefaultThresholdService
[WARNING] Invalid service: imagej.io.DefaultIOService
[INFO] Created service: imagej.io.DefaultRecentFileService
[ERROR] Cannot create plugin: 
class='imagej.io.dnd.ImageFileDragAndDropHandler', priority=-100.0, 
enabled=true, pluginType=DragAndDropHandler
java.lang.NoClassDefFoundError: io/scif/io/img/ImgIOException
     at java.lang.Class.getDeclaredConstructors0(Native Method)
     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
     at java.lang.Class.getConstructor0(Class.java:2714)
     at java.lang.Class.newInstance0(Class.java:343)
     at java.lang.Class.newInstance(Class.java:325)
     at org.scijava.plugin.PluginInfo.createInstance(PluginInfo.java:320)
     at 
org.scijava.plugin.DefaultPluginService.createInstance(DefaultPluginService.java:240)
     at 
org.scijava.plugin.DefaultPluginService.createInstances(DefaultPluginService.java:229)
     at 
org.scijava.plugin.DefaultPluginService.createInstancesOfType(DefaultPluginService.java:220)
     at 
imagej.plugin.AbstractSingletonService.createInstances(AbstractSingletonService.java:80)
     at 
imagej.plugin.AbstractSingletonService.initialize(AbstractSingletonService.java:74)
     at 
org.scijava.service.ServiceHelper.createService(ServiceHelper.java:224)
     at 
org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:176)
     at 
org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:155)
     at 
org.scijava.service.ServiceHelper.loadServices(ServiceHelper.java:126)
     at org.scijava.Context.<init>(Context.java:162)
     at org.scijava.Context.<init>(Context.java:120)
     at org.scijava.Context.<init>(Context.java:81)
     at org.scijava.Context.<init>(Context.java:71)
     at imagej.ImageJ.<init>(ImageJ.java:97)
     at imagej.Main.launch(Main.java:56)
     at selectcellplugin.test12.main(test12.java:46)
Caused by: java.lang.ClassNotFoundException: io.scif.io.img.ImgIOException
     at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
     ... 22 more
[INFO] Found 3 DragAndDropHandler plugins.
[INFO] Created service: imagej.ui.dnd.DefaultDragAndDropService
[INFO] Discovered user interface: imagej.ui.swing.sdi.SwingUI
[INFO] Discovered user interface: imagej.ui.swing.mdi.SwingMdiUI
[INFO] Created service: imagej.ui.DefaultUIService
[INFO] Found 4 upload mechanisms.
[INFO] Created service: imagej.updater.core.DefaultUploaderService
[WARNING] Overridden plugin ij.plugin.LutLoader("3-3-2 RGB") is blacklisted
[WARNING] Overridden plugin ij.plugin.AboutBox is blacklisted
[WARNING] Overridden plugin ij.plugin.Commands("quit") is blacklisted
[INFO] Found 247 legacy plugins (plus 133 ignored).
[INFO] Created service: imagej.legacy.DefaultLegacyService
[INFO] Created service: imagej.ui.swing.SwingIconService
[INFO] Found 8 JHotDraw adapters.
[INFO] Created service: imagej.ui.swing.overlay.JHotDrawService
[INFO] Created service: imagej.ui.common.awt.AWTScreenCaptureService
[INFO] Created service: imagej.render.DummyRenderingService
[INFO] Created service: imagej.data.display.DummyScreenCaptureService
Exception in thread "main" org.scijava.NoSuchServiceException: Service 
imagej.console.ConsoleService not found.
     at org.scijava.AbstractGateway.checkNull(AbstractGateway.java:71)
     at org.scijava.AbstractGateway.get(AbstractGateway.java:55)
     at imagej.ImageJ.console(ImageJ.java:177)
     at imagej.Main.launch(Main.java:59)
     at selectcellplugin.test12.main(test12.java:46)
Java Result: 1

Best Regards,
M. Tleis



More information about the ImageJ-devel mailing list