Posted by
Sean Parsons-2 on
Aug 18, 2010; 9:00pm
URL: http://imagej.273.s1.nabble.com/netbeans-and-imagej-tp3687112p3687122.html
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#a635869and:
http://imagej.588099.n2.nabble.com/How-to-link-an-external-package-to-plugin-in-ImageJ-td635887.html#a635890Can 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.htmlBut 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!