opening class files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

opening class files

Braekevelt Martin
Dear ImageJ experts,

I have 2 plugins programmed for me by a kind ImageJ expert.He made this from some macro's I made and he put them in a more nice GUI form.
I have encountered some problems of which I think they are related with a setting in the particle analyzing parameters. I want to check this in the code so I extracted the jar file and find 5 classes files from what I think they contain the code.
I have some experience in making macro's but absolutely no experience in java and plug in developing.
If I just click on the class file I find a lot of strange symbols instead of the text code.
How to read class files, and if I want to change is there someone who can help me.
The very kind man who helped me with this is no longer reachable on the forum.
Thanks in advance,
Martin.
::DISCLAIMER:: This e-mail is confidential and intended for use by the addressee only. If you are not the intended recipient, please notify us immediately and delete this e-mail, as well as any attachment.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: opening class files

CARL Philippe (LBP)
Dear Martin,
One big difference (there are several other ones) between Macro and Java codes is that when launching a macro its code is interpreted lines by lines as for a plugin the source code (i.e. a .java file) gets compiled into a .class file for each classes within the source file.
After compilation to make things more compact, you can then compress all the obtained .class files into a zip resulting in a .jar file.
Thus the .java file is "human readable" as the .class file is only "machine readable" (unless you make reverse engineering which you should rather forget).
So in the case you want to play with your plugin you need to locate a .java within your .jar and in the case the .java file isn't included, then you can't.
Good luck!
My best regards,
Philippe

Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 41 84

----- Mail original -----
De: "Braekevelt Martin" <[hidden email]>
À: "imagej" <[hidden email]>
Envoyé: Mardi 12 Novembre 2019 10:32:14
Objet: opening class files

Dear ImageJ experts,

I have 2 plugins programmed for me by a kind ImageJ expert.He made this from some macro's I made and he put them in a more nice GUI form.
I have encountered some problems of which I think they are related with a setting in the particle analyzing parameters. I want to check this in the code so I extracted the jar file and find 5 classes files from what I think they contain the code.
I have some experience in making macro's but absolutely no experience in java and plug in developing.
If I just click on the class file I find a lot of strange symbols instead of the text code.
How to read class files, and if I want to change is there someone who can help me.
The very kind man who helped me with this is no longer reachable on the forum.
Thanks in advance,
Martin.
::DISCLAIMER:: This e-mail is confidential and intended for use by the addressee only. If you are not the intended recipient, please notify us immediately and delete this e-mail, as well as any attachment.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html