Re: netbeans and imagej

Posted by afro on
URL: http://imagej.273.s1.nabble.com/netbeans-and-imagej-tp3687112p3687123.html

This doesn't happen, because there is no Libraries folder if you start the
project as described in the tutorial
http://rsb.info.nih.gov/ij/developer/NBTutorial.html
This is a free--form ANT project, and this is my main problem. The ANT
script doesn't add these external jar files while compiling/building.

How can I create a project, which starts ImageJ when debugging, and I can
write and debug plugins too? So how should I create a project, which is
similar to the one in
http://rsb.info.nih.gov/ij/developer/NBTutorial.htmlbut I could add
Libraries?

Thanks for your reply!

Joe

2010/8/18 Sean Parsons <[hidden email]>

> I use NetBeans to compile ImageJ plugins.
>
> Once you have opened/begun a Project, click the Project tab in the left
> window.
> This shows a folder tree of all the folders associated with the project.
> Right
> click on the folder named Libraries and a pop-up menu will appear
> containing the
> options Add Project, Add Folder, Add JAR/Folder. Selecting "Add
> JAR/Folder" brings up a file open dialog from where you can add your jar
> file.
>
> Sean Parsons
>
>
>
>
>
> ________________________________
> From: József Pálfalvi <[hidden email]>
> To: [hidden email]
> Sent: Wed, 18 August, 2010 16:05:35
> Subject: netbeans and imagej
>
> 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!
>
>
>
>
>