MATLAB: How to start MATLAB using the JAVA program in Linux

bsdconsolelinuxMATLABsolaristerminal

I am working in Linux and would like to start MATLAB from my Java program using the Runtime class.

Best Answer

In order to programmatically start MATLAB from Java, pass the MATLAB startup script to a terminal window. For example,
rt = Runtime.exec("xterm -e matlab");