top bar

Using Netbeans

Revision as of 11:37, 22 November 2013 by Mark Tsuchida (Talk | contribs)

The following instructions for debugging Micro-Manager's Java code with Netbeans are intended to work on Windows or Mac.

  1. Download and install Micro-Manager.
  2. Use subversion to download a copy of the latest Micro-Manager source and 3rdpartypublic. The two directories should reside in the same parent directory, e.g. projects/micromanager/ and projects/3rdpartypublic/
  3. Download, install and run Netbeans (the Java SE Bundle is sufficient).
  4. Choose File > New Project... > [Categories] Java > [Projects] Java Project with Existing Sources. Press Next.
  5. Give your project a name. The Project Folder is best saved outside of the Micro-Manager source directory. Press Next.
  6. Under Source Package Folders, click Add Folder at right and browse to <micromanager>/mmstudio/src. If you want to develop a plugin, you can also add <micromanager>/plugins/*/src at this time. Press Next.
  7. Include all files (**). Press Finish.
  8. Right-click your project in the Projects tab (probably at left) and select Properties.
  9. Select Libraries under Categories. Make sure the Java Platform matches the version of Micro-Manager you are using (e.g., 64-bit JDK 1.6).
  10. Under Compile > Compile-time Libraries, click Add Jar/Folder, select Relative Path on the right, and add all jars in 3rdpartypublic/classext.
  11. Click Add Jar/Folder again and choose MMCoreJ.jar and MMAcqEngine.jar in <your_micromanager_installation_directory>/plugins/Micro-Manager/.
  12. Select Run under Categories. For the <default config>, set the following parameters:
    • Main Class: ij.ImageJ
    • Working Directory: <your_micromanager_installation_directory>
    • VM options: -Xmx600M (for 64 bit use -Xmx3000M).
  13. Click OK, sacrifice a goat, and then right-click your project and choose Debug.
  14. If the gods are smiling, then Micro-Manager should launch inside ImageJ.

© Micro-Manager : Vale Lab, UCSF 2006-2011 | All Rights Reserved | Contact