Importing Plugin classes into Script

Hi,

I’m new to working with Fiji scripting so hopefully this is simple and someone can point me in the right direction.

I’m writing a script for Fiji using Javascript and trying to use importClass to import a class contained in another plugin. My problem is that I can’t seem to find the correct namespace to use in the import.

I’ve unsuccessfully tried several variations on:
importClass(Packages.ij.plugins.the_plugin_jar_name.the_class_name)

Thanks

There are several examples if you search the forum for Javascript and importClass, like this one:

But I suspect it will depend on the plugin.

Someone else might have a more specific answer if you listed the plugin.