====== The ImageJ Netbeans Howto ====== Originally by gharris@mbl.edu ====== NetBeans for ImageJ Development ====== For development, I use the NetBeans IDE*, which includes the Swing GUI Builder. You can also download and install the NetBeans Profiler for diagnostics. There is also the NetBeans™C/C++ Pack 5.5 which enables C/C++ coding and compiling, but I have not yet used it for compiling the QCamJNI.c code for CamAcqJ. (A NetBeans Project for CamAcqJ development will be published soon... ) * I have not used Eclipse enough to say if it is better or worse than NetBeans. But I can say that when I tried to try it, I found it hard just to get my project running (I had been using JBuilder). I found it much easier to get started with NetBeans, and using the JBuilder project importer, was able to get my code running very quickly. Overall, I think Eclipse and NetBeans a comparable, but my personal preference is NetBeans. ===== Using NetBeans 5.5 for ImageJ Plugin Development ===== {{:howto:plugins:topic20notesimage9.jpg|graphic}} NetBeans 5.5 IDE I have built a NetBeans Project configured for ImageJ Plugin Development. ijNB package Download You can download it from {{:howto:plugins:ijnb.zip|here}}. ijNB.zip (2.7M) Create a directory for the project (say ijNB) and extract the contents of the zip (using subfolders). Open the project with NetBeans. To Update to the Latest ImageJ Source Code (As of January 2, 2007, this package contains the ImageJ source version 1.38f) When new versions of ImageJ are released: Download ijXXXx-src.zip Unzip it... this creates a folder: source Replace the ImageJ source code In the directory where you installed ijNB {{:howto:plugins:topic20notesimage15.jpg|}} {{:howto:plugins:topic20notesimage16.jpg|}} delete the \ij folder File & Folders in ijNB {{:howto:plugins:topic20notesimage17.jpg|}} ===== Compiling Plugins ===== {{:howto:plugins:topic20notesimage18.jpg|}} ===== Clean Plugins ===== ===== Compile Plugins ===== These options are available because the build file has been setup for ImageJ... Ant Build Files {{:howto:plugins:topic20notesimage20.gif|}} build.xml: ===== Compiling Individual Plugins ===== Try to compile one of the .java files… Nb prompts to create ide-file-targets.xml Must set property 'files' Then you can compile single files... {{:howto:plugins:topic20notesimage23.jpg|}} MacAdapter MacAdapter.java import com.apple.eawt.*; depends on AppleJavaExtensions.jar and MRJAdapter.jar