What does the JVM do in the MATLAB Compiler Runtime (MCR)?

I would like to know what is the purpose of the JVM (Java Virtual Machine) in the MCR and what is the effect if I call the flag -NOJVMin MWApplication.initializeApplication()?

As I wrote a Java application that contains a graphical interface, and I tried with / without option -NOJVM. And only the LookandFeelgraphical interface changes .

+3
source share
2 answers

Matlab contains an internal JVM that is used for all graphical interfaces created by Matlab (graphics, dialog boxes, desktop / editor, etc.). By launching Matlab with the -NOJVM switch, you mainly use Matlab as a pure computing engine (the engine is based on c / C ++ and does not use JVM). If your entire GUI is handled externally in Matlab, then perhaps you don't need an internal JVM that carries the cost of memory and initial performance.

+6
source

I just guess, since I really don't know Matlab, but maybe this is just a flag for Matlab to give it the ability to use its internal JVM or use the operating system JVM.

, Matlab "C:\windows\program files" , JRE Java, , , , -NOJVM, JRE JRE , JAVA_HOME.

; -)

-3

Source: https://habr.com/ru/post/1730680/


All Articles