D
David Soukal
Hello,
I have a problem that I'm trying (unsuccessfully) to solve. I'm using
Java in Matlab to compute some things for which native Matlab code is
cumbersome and slow.
The problem is that Matlab (or better its JVM) caches classes which has
been loaded in the current session. This behavior is absolutely
reasonable and welcome but not in situations when the class changes as
it happens during debuging and development of the class. It is very
annoying to have to restart Matlab everytime I recompile the class...
Is there any generic solution??
The Matlab uses JVM's internal classloader, but it does not allow you to
flush its cache...
Well, I was thinking that it would flush the cache once the last
reference to the class in question was released. BUT IS NOT THE CASE (at
least in Matlab)! So, there are no references to the class and yet it is
still in the cache... I tried to use Matlab's commands like "rehash",
"clear classes" but it's no use.
THANK YOU FOR YOUR HELP!!
David
I have a problem that I'm trying (unsuccessfully) to solve. I'm using
Java in Matlab to compute some things for which native Matlab code is
cumbersome and slow.
The problem is that Matlab (or better its JVM) caches classes which has
been loaded in the current session. This behavior is absolutely
reasonable and welcome but not in situations when the class changes as
it happens during debuging and development of the class. It is very
annoying to have to restart Matlab everytime I recompile the class...
Is there any generic solution??
The Matlab uses JVM's internal classloader, but it does not allow you to
flush its cache...
Well, I was thinking that it would flush the cache once the last
reference to the class in question was released. BUT IS NOT THE CASE (at
least in Matlab)! So, there are no references to the class and yet it is
still in the cache... I tried to use Matlab's commands like "rehash",
"clear classes" but it's no use.
THANK YOU FOR YOUR HELP!!
David