From: konrad on 29 Jul 2010 06:35 I have built my m-file using Java Builder in Matlab. I create new project in java IDE: package matlabtest; import ecttest.*; import com.mathworks.toolbox.javabuilder.*; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author konrad */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { try { // TODO code application logic here Object [] result = null; Class1 matkl = null; matkl = new Class1(); result=matkl.ecttest(1, 1); System.out.println(result[0]); } catch (MWException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); ex.printStackTrace(); } } } I've built this and everythink was ok. But when I run my project. There is a message: Maximum variable size allowed by the program is exceeded. Error in ==> linspace at 22 Error in ==> Sensor_element_circular.Sensor_element_circular>Sensor_element_circular.Sensor_element_circular at 105 Error in ==> ecttest at 81 } 2010-07-29 12:14:24 matlabtest.Main main SEVERE: null .... Matlab M-code Stack Trace ... file D:\Program Files\MATLAB\MATLAB Compiler Runtime\v711\toolbox\matlab\elmat\linspace.m,name linspace,line at 22. file C:\Users\konrad\AppData\Local\Temp\konrad\mcrCache7.11\ecttes1\work\ECT_100726\@Sensor_element_circular\Sensor_element_circular.m,name Sensor_element_circular.Sensor_element_circular,line at 105. file C:\Users\konrad\AppData\Local\Temp\konrad\mcrCache7.11\ecttes1\work\ECT_100726\ecttest.m,name ecttest,line at 81. com.mathworks.toolbox.javabuilder.MWException: Maximum variable size allowed by the program is exceeded. Error in =>ecttest.m at 81 at com.mathworks.toolbox.javabuilder.internal.MWMCR.mclFeval(Native Method) at com.mathworks.toolbox.javabuilder.internal.MWMCR.access$600(MWMCR.java:25) at com.mathworks.toolbox.javabuilder.internal.MWMCR$6.mclFeval(MWMCR.java:918) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.mathworks.toolbox.javabuilder.internal.MWMCR$5.invoke(MWMCR.java:816) at $Proxy0.mclFeval(Unknown Source) at com.mathworks.toolbox.javabuilder.internal.MWMCR.invoke(MWMCR.java:492) at ecttest.Class1.ecttest(Class1.java:216) at matlabtest.Main.main(Main.java:26) .... Matlab M-code Stack Trace ... file D:\Program Files\MATLAB\MATLAB Compiler Runtime\v711\toolbox\matlab\elmat\linspace.m,name linspace,line at 22. file C:\Users\konrad\AppData\Local\Temp\konrad\mcrCache7.11\ecttes1\work\ECT_100726\@Sensor_element_circular\Sensor_element_circular.m,name Sensor_element_circular.Sensor_element_circular,line at 105. file C:\Users\konrad\AppData\Local\Temp\konrad\mcrCache7.11\ecttes1\work\ECT_100726\ecttest.m,name ecttest,line at 81. com.mathworks.toolbox.javabuilder.MWException: Maximum variable size allowed by the program is exceeded. Error in =>ecttest.m at 81 at com.mathworks.toolbox.javabuilder.internal.MWMCR.mclFeval(Native Method) at com.mathworks.toolbox.javabuilder.internal.MWMCR.access$600(MWMCR.java:25) at com.mathworks.toolbox.javabuilder.internal.MWMCR$6.mclFeval(MWMCR.java:918) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.mathworks.toolbox.javabuilder.internal.MWMCR$5.invoke(MWMCR.java:816) at $Proxy0.mclFeval(Unknown Source) at com.mathworks.toolbox.javabuilder.internal.MWMCR.invoke(MWMCR.java:492) at ecttest.Class1.ecttest(Class1.java:216) at matlabtest.Main.main(Main.java:26) How can I increase max variable memory size? I have 3 G ram and 1,5 G is free...
From: us on 29 Jul 2010 08:18 "konrad " <qnrad(a)wp.pl> wrote in message <i2rlha$m6h$1(a)fred.mathworks.com>... > I have built my m-file using Java Builder in Matlab. > How can I increase max variable memory size? > I have 3 G ram and 1,5 G is free... a hint: http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/brjh09y-1.html#bsemees-1 us
From: konrad on 29 Jul 2010 11:29 "us " <us(a)neurol.unizh.ch> wrote in message <i2rrht$l10$1(a)fred.mathworks.com>... > "konrad " <qnrad(a)wp.pl> wrote in message <i2rlha$m6h$1(a)fred.mathworks.com>... > > I have built my m-file using Java Builder in Matlab. > > How can I increase max variable memory size? > > I have 3 G ram and 1,5 G is free... > > a hint: > > http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/brjh09y-1.html#bsemees-1 > > us Thanks for advice. I have r2009 and I've found solution for my matlabs version: http://www.mathworks.com/support/solutions/en/data/1-18I2C/ It doesn't work..., but I don't excatly catch why i change sth in matlab when i only use my .jar file. It can be use without even start matlab... I think... maybe i should change sth in MCR (MATLAB Compiler Runtime) (i've read that it interprets sth when we convert .m files to java package)
From: konrad on 29 Jul 2010 11:30 "us " <us(a)neurol.unizh.ch> wrote in message <i2rrht$l10$1(a)fred.mathworks.com>... > "konrad " <qnrad(a)wp.pl> wrote in message <i2rlha$m6h$1(a)fred.mathworks.com>... > > I have built my m-file using Java Builder in Matlab. > > How can I increase max variable memory size? > > I have 3 G ram and 1,5 G is free... > > a hint: > > http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/brjh09y-1.html#bsemees-1 > > us Thanks for advice. I have r2009 and I've found solution for my matlabs version: http://www.mathworks.com/support/solutions/en/data/1-18I2C/ It doesn't work..., but I don't excatly catch why i change sth in matlab when i only use my .jar file. It can be use without even start matlab... I think... maybe i should change sth in MCR (MATLAB Compiler Runtime) (i've read that it interprets sth when we convert .m files to java package)
|
Pages: 1 Prev: Lookup value on graph Next: Simulation With Transformer & Transmission Line |