필터 지우기
필터 지우기

-nojvm option

조회 수: 83 (최근 30일)
Daniel Shub
Daniel Shub 2012년 5월 22일
You can start MATLAB with a number of flags one of which is -nojvm which starts MATLAB without the Java virtual machine. One of the obvious effects of -nojvm is that there is no desktop, but you can get that with the -nodesktop and/or -nodisplay flags. What are the advantages and disadvantages of starting MATLAB without the JVM?
EDIT
The type of things I am interested in are effects of -nojvm beyond the effects you get with -nodesktop and -nodisplay. For example, if you use -nojvm then the SOUND function uses alternative code.
Some open question that I do not know the answers to are Is the JVM needed for importing java objects? Does JIT acceleration require the JVM? Does multithreading work without the JVM? What type of applications go faster without the JVM?

답변 (2개)

Thomas
Thomas 2012년 5월 22일
Daniel,
the -nodesktop starts MATLAB without bringing up the MATLAB desktop. The JVM software is started. Use the current window in the operating system to enter commands. * Will still work with graphics (you can use the plot commands)*
-nodisplay: also starts the JVM and does not start the desktop in addition it also ignores Commands and the DISPLAY environment variable in LINUX. (will not work with graphics because of X limitations I presume)
-nojvm does not start the JVM software and uses current window. Graaphics will not work without the JVM
More info here:
  댓글 수: 2
Daniel Shub
Daniel Shub 2012년 5월 22일
Does the JVM affect anything other than the display?
Thomas
Thomas 2012년 5월 22일
http://www.mathworks.com/help/techdoc/matlab_external/f98533.html
The MATLAB Java interface enables you to:
Access Java API (application programming interface) class packages that support essential activities such as I/O and networking. For example, the URL class provides convenient access to resources on the Internet.
Access third-party Java classes
Easily construct Java objects in MATLAB workspace
Call Java object methods, using either Java or MATLAB syntax
Pass data between MATLAB variables and Java objects

댓글을 달려면 로그인하십시오.


Sean de Wolski
Sean de Wolski 2012년 5월 22일
Compare:
* doc mtimes;
* plot(1:10);
* edit linespec
  댓글 수: 2
Daniel Shub
Daniel Shub 2012년 5월 22일
This is all display related. I am interested in non-display aspects (if any) of the JVM.
Sean de Wolski
Sean de Wolski 2012년 5월 22일
Some things that use an API, e.g. URLREAD

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by