Hello. I am writing and compiling .java files within ImageJ. I am editing in the ImageJ editor and then I choose "File -> compile and run". When the program has no errors, all works as expected. But if I have a syntax error, I get no error message. Rather, it runs the previous successful version and does not tell me there was a problem. Why am I not seeing some sort of error log to guide me in debugging?
I am running Mac OS 10.13.6 ImageJ 1.50a (yes - I know it is old but is that really the problem?) Java 1.8.0_60 (64-bit) thanks Joe v. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Dear Joe,
Your issue is really trivial and I had previously jumped in it several times before understanding it's origin. You simply have a (or more) "compiled working" version of the plugin you are trying to modify somewhere within your ImageJ plugin folder (or subfolder) and thus ImageJ will be running this working one in priority. Thus simply close ImageJ, move this working version out of the plugin folder (within the ImageJ root folder, i.e. the one where is the ImageJ.exe file will already make the job) relaunch ImageJ and all should be working as you are expecting it. 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 42 89 ----- Mail original ----- De: "Joe Vandergracht" <[hidden email]> À: "imagej" <[hidden email]> Envoyé: Mardi 7 Juillet 2020 22:43:05 Objet: where are plug in compile errors Hello. I am writing and compiling .java files within ImageJ. I am editing in the ImageJ editor and then I choose "File -> compile and run". When the program has no errors, all works as expected. But if I have a syntax error, I get no error message. Rather, it runs the previous successful version and does not tell me there was a problem. Why am I not seeing some sort of error log to guide me in debugging? I am running Mac OS 10.13.6 ImageJ 1.50a (yes - I know it is old but is that really the problem?) Java 1.8.0_60 (64-bit) thanks Joe v. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by jvander
On Tuesday, 7 July 2020 21:43:05 BST [hidden email] wrote:
> Hello. I am writing and compiling .java files within ImageJ. I am editing > in the ImageJ editor and then I choose "File -> compile and run". When the > program has no errors, all works as expected. But if I have a syntax > error, I get no error message. > ImageJ 1.50a (yes - I know it is old but is that really the problem?) What Philippe just posted or maybe related to this bug resolved 4 yrs ago: 1.50g 13 February 2016 * Fixed a bug that caused the Compile and Run command to fail on Java 8 when compiling plugins with errors. See here all that you are missing since 1.50 (released in 2015!) https://imagej.nih.gov/ij/notes.html Cheers Gabriel -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by jvander
Philippe and Gabriel,
Thanks for your help. I decided to take Gabriel's gentle prod and upgrade from my 2015 ImageJ version and that solved the compiler error problem. I did run into a problem after installation that might be worth noting for others. I have a folder within ImageJ (I have to 'show package contents' to see it in the finder) that I use to read and write temporary files. That is probably a bad practice. In any event, the files were "lost" because after I installed the new version, the path had to be changed from /Applications/ImageJ/temp_folder to /Applications/ImageJ.app/temp_folder. This probably relates to a misunderstanding I have about how package contents work etc. thanks again, Joe v. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |