Using COMSOL with MATLAB, to run a model made with a user-defined physics interface created with the COMSOL Physics Builder you need to save the compiled archive (.jar) in your user home folder
.comsol/<version>/archives, where you replace
<version> with the current version of COMSOL. Any compressed archive (with extension
.jar) is loaded next time COMSOL with MATLAB starts.