NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

JDK1.0.2 simulations (1996-2001) => Misc => Topic started by: Yves on February 12, 2008, 12:43:04 am



Title: Problem with Java
Post by: Yves on February 12, 2008, 12:43:04 am
Hi,

I am simulating Brownian motion and its interaction with fellow molecules. Due to the large amount of combination, I am getting the error "// Codes below cannot run due to runjava:293: code too large" in public void run(). I have tried increasing the memory size of the compiler, but that doesn't help.

Appreciate your advice on this matter.

Thanks in advance.


Title: Re: Problem with Java
Post by: Fu-Kwun Hwang on February 12, 2008, 09:15:42 am
"increasing the memory size of the compiler"???
I do not know why it could help to solve the problem?
Are you allocate memory dynamically in your code? Or call the same function itself and end up in an infinite loop? Or ...
There are many possibility ...


Title: Re: Problem with Java
Post by: Yves on February 12, 2008, 10:08:05 am
Well, I was desperate and willing to do anything.  ;D

Nope, I did not dynamically allocate, and found no problems with my loops. This problem is a frequent occurence, but the solutions aren't forthcoming to my case.


Title: Re: Problem with Java
Post by: Fu-Kwun Hwang on February 12, 2008, 10:51:47 am
You just need to post your code here, otherwise, there is no way I can help.