Can't get the Classifier to load


#1

I can’t get the Classifier to load in CellProfiler Analyst. Graphs work fine and I can view individual image files, but choosing Classifer from the Analyze menu fails silently, with the following message printed to the console:

Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: Could not
initialize class jCPAnalyst.classifier.CellBoard
at jCPAnalyst.classifier.ClassifierGUI.createUI(ClassifierGUI.java:361)
at jCPAnalyst.classifier.ClassifierGUI.(ClassifierGUI.java:172)
at jCPAnalyst.MainWindow.classifyItemPressed(MainWindow.java:497)
at jCPAnalyst.MainWindow.actionPerformed(MainWindow.java:347)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

What am I missing?

Thanks!
Tim


Problems exporting demo examples to CellProfiler Analyst
#2

Please confirm that you have the “width of object cropping square” parameter set in your properties file.

You can manually add “cell_size=50” to your .properties file, or edit it through file > edit properties.


#3

Yep, it’s set. It also happens using the example database & its supplied configuration file.

tim


#4

Oops. Resolved. It wasn’t set the first time I tried to load the classifier. Restarting CPA cured me and now I can load the classifier.

Thanks for your help!
Tim


#5

Ah… okay. Well the next place I would have pointed you would again have been the properties file red/green/blue image paths.

This does bring up a point though which is that it’s always best to restart the whole app after modifying your properties file. There are a few bugs that need to be worked out which you might encounter if you modify > save > and reload, rather than restart the whole app.

If, for instance you’re working in classifier and you find that you’d rather be looking at smaller image thumbnails then (1) save your training set and rules first (2) modify your properties file (I prefer to modify the file directly, you can also use the built in tool) (3) restart the app.

Glad you could work this one out on your own.