When running a jar file in MATLAB, a Java log file is not created.

I am using MatlabProxy library to send and receive data between jar file(java gui program) and matlab or running mscript in Java.
The jar file uses log4j2 to generate a log file
I checked that log file is generated when running jar file in cmd.
However, if you run the jar file in Matlab's mscript, the log file is not generated in the path.
I don't think it's a file permission issue because the GUI program that runs by performing a jar file in Matlab's mscript performs the function of deleting or adding files with the actual file explorer structure
Why was the log file not created when the jar file was run?
If you've ever had this problem, please help me

2 Kommentare

It would be the best if you can provide steps and files needed for reproduction.
sua
sua am 7 Sep. 2023
Bearbeitet: sua am 11 Okt. 2023
function startJava()
% java object
javaObj = com.matlab.Gui();
Gui.main(); %run java gui program
assigin('base','javaObj',javaObj);
end
The above code is a simple example of mscript.
javaObj.The GUI program is executed as the main() is performed.
Java then creates a log file and leaves a log.
However, no log files are generated and no exceptions are generated.
I don't know what the problem is
Can the log be left in the matlab log file?
If so, where can I check the matlab log file?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023a

Gefragt:

sua
am 4 Sep. 2023

Bearbeitet:

sua
am 11 Okt. 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by