Login  Register

netbeans and imagej

Posted by afro on Aug 18, 2010; 8:05pm
URL: http://imagej.273.s1.nabble.com/netbeans-and-imagej-tp3687112.html

Hi,
I already read these 2 posts:
http://imagej.588099.n2.nabble.com/ImageJ-and-NetBeans-td635868.html#a635869
and:
http://imagej.588099.n2.nabble.com/How-to-link-an-external-package-to-plugin-in-ImageJ-td635887.html#a635890

Can you help me to compile and run plugins with netbeans?
I'm not a beginner, but I've some difficulties using external .jar files
with netbeans + imagej.
Heres is my problem: I've some very complicated math algorithms in MATLAB. I
successfully generated .jar files from the MATLAB code(by MATLAB built-in
.jar builder) (I tested them using sample projects in netbeans).
But now I want to write a plugin which uses this .jar file. I set up the
netbeans project as described here:
http://rsb.info.nih.gov/ij/developer/NBTutorial.html

But when I want to run my plugin from ImageJ (started in debug mode by
netbeans), than I get this error:
"Plugin or class not found: My_plugin"
(java.lang.
NoClassDefFoundError: com/mathworks/toolbox/javabuilder/MWArray)

So the main problem is, that in this ANT script structure I can't add
external libraries to the project so that ImageJ sees it while
running/debugging.
Please help me! Any ideas?

I also read, that  user
http://imagej.588099.n2.nabble.com/user/UserNodes.jtp?user=107784 has
written a custom build.xml
Can somebody send me that build.xml please to: [hidden email]

Thank you very much!