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 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.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest