Re: null pointer exception on instanciating a matlab .jar class from plugin
Posted by dscho on Jul 06, 2011; 7:12pm
URL: http://imagej.273.s1.nabble.com/null-pointer-exception-on-instanciating-a-matlab-jar-class-from-plugin-tp3683949p3683955.html
Hi,
it is slightly irritating that you neither quote my mail nor send the
answer Cc:ed to me.
On Wed, 6 Jul 2011, Heerpa wrote:
> Hum, I have not run "update menus" (I didn't know about it, so I
> always update the menus by restarting IJ).
> Might the problem be that I built the file before so that java
> somewhere keeps nativemcl76.dll loaded which causes a problem the
> next time?
> But then, the first try this morning went wrong, too..
>
> Is it possible that I implicitely load the dll twice in the plugin?
Must be that.
I fear that you need to use either Matlab's Compiler (not Compiler JA) or
Coder Toolbox instead, since I doubt that you can somehow control how the
Matlab Runtime tries to load the classes when built with Compiler JA.
At least that's what a colleague and me did (work stalled a little, we
wanted to publish an application note about this before offering our work
to others).
Ciao,
Johannes