The following code in MATLAB had been working until very recently, but now it often issues an error.
The error message is as follows:
Undefined variable "ImageJMATLAB" or class "ImageJMATLAB.start". Error in ImageJ (line 42) ImageJMATLAB.start();
This error message refers to the following code snippet.
import net.imagej.matlab.*; if open_imagej ImageJMATLAB.start(); else % initialize ImageJ with the headless flag ImageJMATLAB.start('--headless'); end
This indicates that MATLAB cannot find
net.imagej.matlab.ImageJMATLAB, even though I can confirm that
D:\Fiji.app\jars\imagej-matlab-0.7.2.jar is in dynamic Java class path by using
I’m wondering why this error happens (it’s strange that
import net.imagej.matlab.*; does not issue an error) and if other people are experiencing the same issue.
I’m using R2018b prerelease on Windows 10.