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

Posted by ctrueden on
URL: http://imagej.273.s1.nabble.com/ImageJ-Compile-Run-compiles-java-program-in-editor-but-runs-from-cache-How-to-fix-tp5019392p5019419.html

Hi Fred,

Another option would be to prototype your code using a Java-like scripting
language [1] such as Groovy [2] or BeanShell [3], in the Script Editor [4]
of ImageJ2.

This would give you the rapid development iterations you desire, without
the pain of Compile&Run and related Java class loading issues. Once the
code works, you could paste it into a Java plugin as needed, with minimal
or no changes.

Regards,
Curtis

[1] https://imagej.net/Scripting
[2] https://imagej.net/Groovy
[3] https://imagej.net/BeanShell
[4] https://imagej.net/Script_Editor

--
Curtis Rueden
LOCI software architect - https://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - https://imagej.net/User:Rueden
Did you know ImageJ has a forum? http://forum.imagej.net/


On Mon, Sep 18, 2017 at 10:04 PM, Fred <[hidden email]> 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