Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Open another EXE-programm with Application Builder

Please login with a confirmed email address before reporting spam

Hallo everyone,

i want to create a user interface with application builder, set a Button in the interface and with a click on the button to open another Programm like Matlab (.m file) and run it.
i already how to build this user interface and how to add a button but just don't know how to realize the last step.

How could i do it? should i write a code or this function is already in the application builder?

tried with this code in a new method: (i want to open the model.m file with matlab)

Runtime.getRuntime().exec("MATLAB R2015a", "C:/Users/Desktop/model.m");

but always get the Error "Unhandled exception type IOException"


0 Replies Last Post 17.06.2015, 09:21 GMT-4
COMSOL Moderator

Hello Yuchen Cui

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.