Odd errors when installing plugins (classname set properly)

15 views
Skip to first unread message

Masoud Ramuz

unread,
Feb 13, 2019, 10:12:03 AM2/13/19
to Icy imaging

Dear Icy community,

I'm having a strange problem installing my plugin through the icy plugin installer.
I get the following errors:

Class 'plugins.adufour.tutorial.EzPlugTutorial.plugins.adufour.tutorial.EzPlugTutorial' cannot be loaded :
Required class 'plugins.adufour.tutorial.EzPlugTutorial.plugins.adufour.tutorial.EzPlugTutorial (wrong name: plugins.adufour.tutorial.EzPlugTutorial)' not found.
Fatal error while loading 'plugins.MasoudR.MultiFretIcy.MultiFretIcy' class from plugins/MasoudR/MultiFretIcy/MultiFretIcy.jar :
java
.lang.ClassNotFoundException: plugins.MasoudR.MultiFretIcy.MultiFretIcy
Verify you correctly set the class name in your plugin description.

Installation of the following plugin(s) failed:
MultiFretIcy 0.0.1.12



This is strange because:
1. EzPlugTutorial is installed due to the EzPlug SDK dependency of my plugin, however it gives this error but despite everything still has managed to install it in my plugins folder?
2. My plugin gets installed under "Icy-App\plugins\MasoudR\MultiFretIcy\MultiFretIcy.jar" and I have set the class name as plugins.MasoudR.MultiFretIcy.MultiFretIcy after reading the solution to a similar problem here: http://icy.bioimageanalysis.org/support?place=topic%2Ficy-software%2FZJgEfnjfKgI%2Fdiscussion

This should work (I see no difference with how other plugins are set-up).
The error occurs everytime the plugin is installed, but the plugin is installed and runs fine regardless.
The only issue is that it is listed as "faulty" in the plugins list.

I've tried several variants of the classname, but none of them worked.
What am I doing wrong?

Stephane

unread,
Feb 13, 2019, 11:58:45 AM2/13/19
to Icy imaging
Hi Masoud,

About EzPlug tutorial, i guess you have unpacked it into your Icy plugins folder or something like that, you should removed the unpacked files from your plugin folder.

About your plugin, your classname is set to :
plugins.MasoudR.MultiFretIcy.MultiFretIcy

while it should be set to :
plugins.masoud.multifreticy.MultiFretIcy

The letter case is important, also you made a mistake in your developer name.
Changing it as indicated should fix the installation problem !

Best,

- Stephane

Masoud Ramuz

unread,
Feb 14, 2019, 4:57:47 AM2/14/19
to Icy imaging
Dear Stephane,

That solved the ezplugtutorial part, but I am still getting the classname error.
The developer name part is automatically filled in from my username on here, and this is also the folder that the jar file appears in.
Should I be changing my username somehow if that is the source of the problem?


Thanks for the assistance

Stephane

unread,
Feb 14, 2019, 6:14:31 AM2/14/19
to Icy imaging
Dear Masoud,

If your developer login is MasoudR then you need to change the package name of your class in Eclipse to set it exactly as your developer login (respecting the case). Don't change your login name on the website (not sure you can do it anyway).

Best,

- Stephane
Reply all
Reply to author
Forward
0 new messages