Writing MIPAV plugins without MIPAV source code
You can use Eclipse to develop plugins for MIPAV without access to the MIPAV source code.
Contents
Requirements
First, you'll need to download the following software. Note that Java may already be installed on your system. Find out what version of Java you have here.
- Java SE Development Kit. Version 1.5 or higher is needed. Download here
- Eclipse IDE for Java Developers. The current version is required. Download here
- A release of MIPAV. Available here
- The following files:
Installation
Installation should be completed in the following order.
Installing Java
Java installation simply requires following the prompts.
Installing Eclipse
Open the downloaded zip file. Unzip the entire contents to a convenient folder, such as C:\Program Files\
Installing MIPAV
Mipav installation is also quickly completed by following the prompts. Note where you installed MIPAV, by default this is in the folder C:\Program Files\mipav
Building the Eclipse project
Step | Text | Picture |
---|---|---|
1 | Start Eclipse. A dialog will ask you where the default workspace is located. Note the location it specifies and then click OK. With Eclipse started, click File, then New, then Java Project. | |
2 | Name your project mipav-plugin. Ensure that the button next to "Create seperate folders for source and class files" is checked. Click the Next button.
On the Source tab, change the Default output folder tab to "mipav-plugin/classes" |
|
3 | On the libraries tab, click "Add External Class Folder" where you'll want to navigate to where you installed MIPAV. Select the corresponding folder. | |
4 | Also on the libraries tab, click Add External JARs and then add all the files from the following directories:
|
Click Finish when complete. A new project called mipav-plugin should appear. You're now ready to run MIPAV.
Running MIPAV with a sample plugin within Eclipse
Step | Text | Picture |
---|---|---|
1 | To make sure you've set everything up correctly, we'll try to run MIPAV inside of Eclipse. Navigate to Run, then Run Configurations... on the control panel. On the dialog box that opens, highlight Java Application, and then click the New Launch Configuration on the left. Fill out the Name and Project fields with the phrase "mipav-plugin" To fill in the Main Class, click the Search... button. Search for the name "MipavMain" If found, great! Otherwise go to troubleshooting. |