When running ImageJ as an unsigned applet, the class loader that loads user plugins will not work as the plugins folder is not in the code base. Add a package statement such as package ij.plugins to the plugin code and insert the compiled class into ij.jar (be sure to include it into the right folder). To make the plugin appear in the plugins menu add a line like
plug-in08="Plugin",ij.plugin.Plugin_
to the plugins section in IJ Props.txt, which is also located in ij.jar.
You can edit ij.jar with a program that reads ZIP files. Some of them (e. g. WinZip) support editing a file from the archive directly and will update the archive after closing the modified file. Otherwise it is necessary to extract IJ Props.txt from the archive and add it again after editing.
Partager