Trouble compiling jython script into a plugin

compiler
jython
plugin
scripting
java
macro
Tags: #<Tag:0x00007fb882880e90> #<Tag:0x00007fb882880b20> #<Tag:0x00007fb882893f40> #<Tag:0x00007fb882893bf8> #<Tag:0x00007fb8828938b0> #<Tag:0x00007fb882893608>

#1

I’ve written a script in ImageJ’s script editor, and I have it saved as myfile.py
I’ve also used the jython compiler to create the myfile$py.class

I’ve tried installing both files in Fiji through Plugins>Install and Plugins > Install Plugins

Each time, Fiji says the plugin is successfully installed and to restart it. I can see the plugin in the correct fiji-win64/Fiji.app/plugins file location (a .py and .class file), but can’t seem to find the them in the Fiji Plugins menu.

I’m pretty sure I’m missing a step somewhere… Any advice would be greatly appreciated

Running Windows 10, 64 bit
Java 1.8.0_66 (64 bit)
ImageJ 1.51w
Fiji distribution


#2

Well. I feel foolish. This was an issue of improper naming.

Saving the file as _my_file.py and then File>Install Plugins works perfect.
ImageJ requires an underscore + the .py extension


#3

Yes it needs underscore you can even install it just copying your .py file in the Fiji plugins directory and restart Fiji and you will see it under plugins menu