Closed kouichi-c-nakamura closed 6 years ago
R2017b
I think it's better than R2018a (it showed a proper message), but stoppped at the same line.
>> addpath 'D:\Fiji.app\scripts\' % depends your Fiji installation
ImageJ
[INFO] Detected existing ImageJ; passing arguments along
--------------------------------------------------------------
ImageJ-MATLAB 0.7.2: MATLAB to ImageJ Interface
--------------------------------------------------------------
JVM> Version: 1.8.0_121
JVM> Total amount of memory: 1067520 Kb
JVM> Amount of free memory: 399158 Kb
Error using ImageJ (line 42)
Java exception occurred:
java.lang.NullPointerException
at net.imagej.matlab.ImageJMATLAB.disableIJExit(ImageJMATLAB.java:247)
at net.imagej.matlab.ImageJMATLAB.launch(ImageJMATLAB.java:156)
at net.imagej.matlab.ImageJMATLAB.start(ImageJMATLAB.java:105)
at net.imagej.matlab.ImageJMATLAB.start(ImageJMATLAB.java:92)
at net.imagej.matlab.ImageJMATLAB.start(ImageJMATLAB.java:81)
42 ImageJMATLAB.start();
log4j:WARN No appenders could be found for logger (loci.formats.ClassList).
log4j:WARN Please initialize the log4j system properly.
What does this mean? ImageJ.m won't work now? Or am I doing something wrong?
I believe that comment means that user-installed ImageJ plugins won't work in MATLAB.
About two months ago, I was able to run ImageJ.m successfully on MATLAB R2017b
If a tutorial doesn't work for you, please consider posting to the ImageJ forum or editing the wiki. The ImageJ wiki is for community contribution. Also, please note that the Pre-requisites section of the guide instructs the user to enable the ImageJ-MATLAB
update site. I'm sure the ImageJ team would welcome suggestions on how to make instructions like this clearer.
I think it's better than R2018a (it showed a proper message), but stoppped at the same line.
Do you have the Java 8 update site enabled?
Can you try a fresh download of ImageJ?
The error has to do with not finding the legacy ImageJ. @ctrueden has anything changed with legacy ImageJ distribution?
Do you have the Java 8 update site enabled?
Sorry, but I don't understand what you mean by this. Can you clarify it further?
I've copied this issue to ImageJ forum. http://forum.imagej.net/t/cannot-run-imagej-m-from-matlab-with-java-1-8/10050
Sorry, but ImageJ.m worked today.
>> addpath 'D:\Fiji.app\scripts'
>> ImageJ
--------------------------------------------------------------
ImageJ-MATLAB 0.7.2: MATLAB to ImageJ Interface
--------------------------------------------------------------
JVM> Version: 1.8.0_144
JVM> Total amount of memory: 389120 Kb
JVM> Amount of free memory: 128790 Kb
-- Welcome to ImageJ-MATLAB --
ImageJ-MATLAB consists of an extensible set of commands for passing information between ImageJ and MATLAB.
See the individual sections below for a list of available commands.
For more information and examples see:
http://imagej.net/MATLAB-Scripting
--- MATLAB Command Plugins ---
-- ImageJ MATLAB commands --
Usage: IJM.[command]
help - prints a brief description of available commands
getDataset - creates a MATLAB matrix from the active ImageJ image
getDatasetAs(name) - creates a MATLAB matrix from the active ImageJ image, and assigns it to the specified variable name
show(name) - takes the MATLAB matrix with the specified name and displays it as an image
--------------------------------------------------------------
Status> ImageJ is running.
--------------------------------------------------------------
log4j:WARN No appenders could be found for logger (loci.formats.ClassList).
log4j:WARN Please initialize the log4j system properly.
About two months ago, I was able to run
ImageJ.m
successfully on MATLAB R2017b. Now I cannot do the same on R2018a. I've seen this issue reported here, but because the JAVA version is already 1.8, the same solution would not work for me.When I look at the source code of
ImageJ.m
, I found an alarming comment.What does this mean? ImageJ.m won't work now? Or am I doing something wrong?