One easy way to use SciJava Ops is within Fiji, using SciJava's Script Editor. Note that to use Fiji, you must use Java 11+. Please follow the instructions below carefully to ensure you receive the needed Java update.
You can install SciJava Ops into Fiji by enabling the SciJava Ops update site, as described in the Update site tutorial.
- With Fiji open, navigate to
Help → Update... - Click
Manage Update Sites - In the
Searchbar at the top of the popup, searchSciJava Ops - Find the
SciJava Opsrow, and check the checkbox in theActivecolumn. - Click
Apply and Close. You should see many items appear in theImageJ Updatertable. - Click
Apply Changes - Note: launcher change Close and restart Fiji using the new launcher:
fiji-[platform]. For example, if you were on 64-bit Windows your old (deprecated) launcher wasImageJ-win64.exe, and you would instead now usefiji-windows-x64.exe. - Run
Help → Update...a second time. Historically Fiji has shipped with Java 8, but a newer Java is required for SciJava Ops. You should get a dialog saying a new Java version is recommended, and asking if you'd like to update. ClickOKto start the update. This download and extraction may take longer than a usual update. - After receiving a notification that the Java update is complete you can close Fiji and restart one more time to take advantage of the new Java. Note: always use the new
fiji-launcher going forward. - After Fiji restarts, you can double-check the Java version - it should be
21or newer.
At this point you can proceed with using SciJava Ops!
SciJava Ops uses a branch new launcher and updating logic to get access to new Java programming language features. These have not reached the main Fiji release yet and thus have not gone through community hardening yet, so errors may pop up.
If the following steps do not help resolve your situation, please report the issue on the ImageJ forum or Zulip.
Double-check the Fiji.app/config/jaunch directory [Windows/Linux] or Fiji.app/Contents/MacOS. There should be a number of files including jvm.toml, fiji.toml, common.toml. If they aren't there, they may be stuck in the same path under the Fiji.app/update directory: you can manually copy them out to the base Fiji.app diretory, following the same subdirectory structure they had under /update/.
In your Fiji.app/config/jaunch directory you should have a file named fiji.cfg. If this file is not present but you instead have an ImageJ.cfg, first try renaming ImageJ.cfg → fiji.cfg and launch Fiji again. This is a potential bug that can arise due to the switching of the launchers.
If Java 21 is still not being used, look at the actual contents of the fiji.cfg file. This is a plain text file and can be edited in any text editor. It should be along the lines of:
jvm.app-configured=/path/to/downloaded/java
The right-hand side of this assignment should be a path to the location where Java 21 was downloaded. It will be in the form of Fiji.app/java/[platform/zulu21[...]jdk21[...]. Ensure that this path is valid and correct.
We have tested these steps using freshly downloaded Fiji installations for each platform. Given the number of update sites and plugins available for Fiji, it is possible there are unforseen interactions. Thus, falling back to one of these fresh installs is a recommended starting point.