Understanding Compiler Errors and Warnings

No matter how proficient of a programmer you have become, there will be times in which your projects will not build. Or, they may build, but the compiler will warn you that you may be doing something wrong. In these instances the compiler is producing errors and warnings. There are several ways to know that your Java source code has such problems:

  1. An error or warning decorator appears overlaid on some of the labels in the Gild Resource View.
  2. An error or warning image appears in some lines of the Gild Editor's vertical ruler.
  3. Red or yellow squiggles appear within the text of the Gild Editor-these squiggles direct you toward the offending code.
  4. Error and warning lines appear in the Tasks view at the bottom of your screen.

Errors and warnings are always accompanied by descriptive (though sometimes cryptic) messages that are designed to help you understand the problem that has occurred. You may gain access to these messages by several methods:

  1. Click on the "Gild Problem View" tab at the bottom of your screen.
  2. Read the error and warning messages contained there.
  3. Extra help for common errors have been added in the "Gild Problem View".

Or

  1. Open a file, in the Gild Editor, that has an error and/or warning. You will be able to tell which files have errors and/or warnings by the error and warning decorators in the Gild Resource view.
  2. Look for a red or yellow squiggle within the text of the Gild Editor.
  3. Place your mouse over that squiggle.
  4. After a second or two, a tool-tip will appear beside your mouse cursor. This tool-tip will contain the message that you are looking for.

Or

  1. Open a file, in the Gild Editor, that has an error and/or warning. You will be able to tell which files have errors and/or warnings by the error and warning decorators in the Gild Resource view.
  2. Look for an error or warning image in the vertical ruler of the Gild Editor.
  3. Place your mouse over that image.
  4. After a second or two, a tool-tip will appear beside your mouse cursor. This tool-tip will contain the message that you are looking for.

Previous | Index | Next