LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
jsimgOpen.m
1function ret = jsimgOpen()
2
3if ispc
4 cmd = ['java -cp "',jmtGetPath,filesep,'JMT.jar" jmt.gui.jsimgraph.mainGui.JSIMGraphMain > nul 2>&1'];
5elseif isunix
6 cmd = ['java -cp "',jmtGetPath,filesep,'JMT.jar" jmt.gui.jsimgraph.mainGui.JSIMGraphMain > /dev/null'];
7else
8 cmd = ['java -cp "',jmtGetPath,filesep,'JMT.jar" jmt.gui.jsimgraph.mainGui.JSIMGraphMain > /dev/null'];
9end
10[status] = system(cmd);
11if status > 0
12 cmd = ['java --illegal-access=permit -cp "',jmtGetPath,filesep,'JMT.jar" jmt.gui.jsimgraph.mainGui.JSIMGraphMain'];
13 [status] = system(cmd);
14 if status > 0
15 rt = java.lang.Runtime.getRuntime();
16 rt.exec(cmd);
17 end
18end
19end
20