I would like to add a global switch to the Updater that completely disables it without needing to remove the JAR. But we haven’t done that yet. There is a closed issue which discusses the matter in a bit more technical detail.
In the meantime, it should indeed work to delete the updater JAR.
Does the code fail to execute correctly without the updater JAR being present? What is the error message? IMHO, we should fix it to still work!
The issue is almost certainly due to this code in ImageJ TensorFlow:
$ git grep UpdaterUtil
src/main/java/net/imagej/tensorflow/ui/TensorFlowLibraryManagementCommand.java: String platform = UpdaterUtil.getPlatform();
src/main/java/net/imagej/tensorflow/util/TensorFlowUtil.java: private static final String PLATFORM = UpdaterUtil.getPlatform();
But we should just put a try/catch around it, in case the updater is not available. But again, a stack trace would help narrow down where we should put it.
Or even better: it looks like the only usage of Updater code is to call the
getPlatform() method? But we have the
PlatformService already for that. @frauzufall Any reason you weren’t able to use the
PlatformService functionality (or even
org.scijava.util.PlatformUtils) here? Or just ignorance? If there’s no other reason, I can look at changing it over—just let me know.