Skip to content

Failed using ImageJ-Matlab to start ImageJ in headless mode #27

Open
@rmd13

Description

@rmd13

Hi, I am using ImageJ-Matlab to start ImageJ2 from matlab by the matlab code

open_imageJ = false; % = true works and shows a Fiji panel, but false does not work
ImageJ(open_imageJ)

The non-headless mode runs OK when open_imageJ = true. .Although it shows a message box saying “cannot find java script engine”, the Fiji panel shows afterwards.

But if change open_imageJ to false, it shows the error after the same message box was shown :

[ERROR] Cannot create plugin: org.scijava.plugins.scripting.javascript.JavaScriptScriptLanguage

Error using ImageJ2 (line 99)
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)
 
log4j:WARN No appenders could be found for logger (loci.formats.ClassList).
log4j:WARN Please initialize the log4j system properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions