An error is returned when running mphlaunch and mphstart

Solution Number: 1234
Title: An error is returned when running mphlaunch and mphstart
Platform: All Platforms
Applies to: LiveLink™ for MATLAB®
Versions: 5.3
Categories: Error Messages, Error Messages

Problem Description

If the COMSOL installation path contains a space, an error is returned when running the functions mphstart and mphlaunch at the MATLAB prompt.

The error returned when running mphlaunch is:

'C:\Program' is not recognized as an internal or external command, operable program or batch file.

The error returned when running mphstart is:

A connection to COMSOL could not be established. Please check that a COMSOL server is started prior to calling mphstart.


Download the files mphlaunch.p and mphstart.p and save them in the mli folder of the COMSOL 5.3 installation, for instance C:\Program Files\COMSOL\COMSOL53\Multiphysics\mli

Related Files

mphlaunch.p 1 KB
mphstart.p 2 KB


COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.