HOWTO: Set Up Your Compiler


This document explains the optimal compiler settings for Gravisto. It is recommended that every developer uses the same settings because then everyone has the same warnings after the code is checked in into the CVS repository. Most of the Gravisto development is done with the Eclipse IDE. Although not required, it is highly recommended. This tutorial assumes that you have the following:

Configuring Eclipse

Please note, that the following settings are the default settings of a fresh Eclipse 3.2 installation.

  1. Start Eclipse.
  2. Open Window > Preferences > Java > Compiler > Problems
  3. Open Window > Preferences > Java > Compiler > Style. All values must be set on Warning except Access to a non-accessible member of an enclosing type which must be set to Ignore.
  4. Open Window > Preferences > Java > Compiler > Compliance and Classfiles. Under JDK Compliance > Compiler compliance level enter 6.0.