Login  Register

Re: ImageJ Compile&Run compiles java program in editor but runs from cache. How to fix?

Posted by Fred Damen on Sep 19, 2017; 3:56pm
URL: http://imagej.273.s1.nabble.com/ImageJ-Compile-Run-compiles-java-program-in-editor-but-runs-from-cache-How-to-fix-tp5019392p5019395.html

The whole point is that I should not have to restart imagej every time I need
to recompile a Java plugin.  And up to the point that I needed to kill imagej
I did not need to restart.  Help->Refresh Menus does not cause the newer
version of the plugin to be used.

Thanks,

Fred

On Tue, September 19, 2017 10:33 am, Gabriel Landini wrote:

> You need to restart ImageJ or run Refresh Menus, (although I seem to remember
> somebody commenting that restarting is better).
> Cheers
>
> Gabriel
>
>
> On Tuesday, 19 September 2017 04:04:26 BST you wrote:
>> I have been successfully Compile&Run(ing) a Java plugin from the ImageJ
>> editor. At one point the plugin seemed to be in an infinite loop (using
>> massive CPU and not responding to gui interactions). I killed the ImageJ
>> process, and then restarted ImageJ.  Now imagej only runs the version of
>> the program, i.e., class files, that existed when I start imagej.
>>
>> I can make changes and 'Compile and Run...' .  The java program(s) will
>> compile. Although the program, i.e., class files, that is run is the one
>> that existed when imagej started   I suspect that imagej is caching the
>> class files for some reason, but the cache is prevented from being updated.
>>  Where is this cache or how to get imagej to compile and RUN the program
>> from the editor?
>>
>> Thanks in advance,
>>
>> Fred
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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