How can I disable the JVM on a Windows platform for running background matlab scripts -


i found similar question here doesn't me i'm asking own. have matlab script works under linux nohup command. unfortunately, need run on windows also. can't understand why command still doesn't work. script loop after first stops giving me error java or something. must tell same problem occur under linux if don't put -nodisplay command.

my batch line following

matlab -nodisplay -automation -r "run('myfile.m')" -logfile output.txt -minimize

please me.

edit: think found issue problem when use -nodisplay under linux command usejava('awt') works because java environment disabled, not happen under windows! why?

second edit: think found quite similar needed.

matlab -noawt -nofigurewindows -r "run('myfile.m')" -logfile output.txt -minimize 

the analysis runs, without saying nothing, matlab command window still opens minimized..uhm i'd rather having open up!

i must add thing..nohup never waits , go forward until reaches end of script, nevertheless using other batch command such start if there input request or "wait" stops until gives input!

the undocumented -noawt option prevent gui functionality, let java run. combine -nofigurewindows, discovered, , should have need. alternatively, can turn off figure display via m file set(0,'defaultfigurevisible','off').

to see if java loaded, run ver or version -java. here's see -nojvm.

windows matlab no java

then, using windows' start /b /min matlab.exe ... should launch minimized , without holding command window opened.

to make matlab invisible try using tiny nircmd command line tool follows,

nircmd.exe exec hide win64\matlab.exe -noawt -nofigurewindows -nosplash -minimize ... 

i think should it, but make sure start actual matlab.exe in bin\<architecture> folder, not bin\matlab.exe because when launches actual matlab.exe, not hidden.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -