ImageJ scripting
Dear community,
I am a new user of IntelliJ. I come from a biological science background and I end up here because I usually write scripts for image analysis with the ImageJ/Fiji suite (https://fiji.sc/). Recently, the complexity of my scripts has increased so I am using more Java-like languages. Therefore, I decide to try IntelliJ as it offers many facilities for coding. My question is then if there is a way to put together ImageJ and IntelliJ so that I can get access to the libraries from ImageJ while I am writing scripts in Groovy or Javascript. I have already tried syncing a new project with the ImageJ Git (https://imagej.net/Developing_ImageJ_in_IntelliJ_IDEA), which allows me to see Fiji as a external library. However, when I create a new Javascript or Groovy file, I cannot access the functions. Any advice will be very appreciated.
Kind regards,
Santi
Please sign in to leave a comment.
If the jar with the API you are using is present in the module dependencies (https://www.jetbrains.com/help/idea/working-with-module-dependencies.html), you will be able to use it from your Java and Groovy code.
JavaScript libraries are completely different: https://www.jetbrains.com/help/idea/settings-javascript-libraries.html .
Thank you very much for your answer. I added the module and now I can indeed see all the methods, the autocompletion etc...
kind regards,
Santi
Hello Santi,
I have the exact same problem and somehow cant add the module (I am very new with IntelliJ). Can you give a step by step solution, since I think I make some mistake with the introduktions above.
Thank you very much!
Anna