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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like