Getting Started with Eclipse

From MIPAV
Jump to: navigation, search

Eclipse is one of many good IDEs for developing MIPAV plugins and helping with the MIPAV project. Here you can find out how to get started using Eclipse.

Requirements

Here are locations for downloading both Java and Eclipse. Note that Java may already be installed on your system. Find out what version of Java you have here.

  • Java SE Runtime Environment (JRE) or Java Development Kit (JDK). Version 1.6 or higher is needed. You can either download it here or use the JRE bundled with an installed version of MIPAV.
  • Eclipse IDE for Java Developers. The current version is recommended. Download here

Installing Java

If you downloaded Java, simply follow the installation prompts provided.

Installing Eclipse

Steps for building MIPAV.
Step Text Picture
1 Download "Eclipse IDE for Java Developers" from http://www.eclipse.org/downloads/.
2 Unzip Eclipse to an area where you have permission to change/install files, such as your user folder.
UnzipEclipse.png
3 Open "eclipse.ini" in the Eclipse folder you've just unzipped. Increase the two memory values at the bottom of the file. In the picture, I changed the minimum (-Xms) to 512m and the maximum to (2048m) in an 8MB machine.
FixEclipse.png
4 Start Eclipse, press Go to Workbench, and then press Window->Preferences. It's time to link to the MIPAV JRE. Navigate to the Installed JREs section you see in this picture, and add a Standard VM.
AddJRE.png
5 Use the Directory... button to locate the MIPAV JRE. This is located inside of the folder where you installed MIPAV.
NewJRE.png

Click Finish, the project will now be initialized. A new project called mipav-plugin should appear. You're now ready to run MIPAV.

Code Conventions

MIPAV code is written in Java and conforms to many of the standard Java code conventions. In addition, here are some things you can set Eclipse to do:

  • Insert spaces when the Tab key is pressed.

Now What?

With Java and Eclipse installed, you're all set to write MIPAV plugins.