Prevent Matlab from Creating Java. Log. * Files in the Home Directory?
I've Recently Started Using Matlab. If Started with the Jvm, Log Files Will Be Created in the Home Directory (A Different One Every Time It Starts Up). Opening...
I've recently started using matlab. If started with the jvm, log files will be created in the home directory (a different one every time it starts up).
Opening log file: /home/max/java.log.4363
The number at the end is different every time. Is there anyway I can change the location of this file (say a temporary directory)?
I can see no such option in matlab -help.
I should mention that I am currently using matlab 2015, but the same occurs with other recent-ish versions.
1 Answer
As written in this answer by Suever to a similar question, you need to specify the MATLAB_LOG_DIR environment variable before starting matlab.