VisualAge for Java automatically compiles every change you make to source code. If it encounters an error while compiling, it warns you that it encountered a problem, and gives you the option of fixing it before saving. If the compiler can determine possible alternatives to the problem code, it presents these alternatives to you in a list. You may select one of the alternatives to correct the problem.
If you save the element without fixing the problem, the IDE adds an entry to the All Problems page of the Workbench and to the Problems page of any browser that shows the program element with the problem.
Program elements that contain errors are marked with a red error symbol . If a class contains a
method with an error, the class is marked with a gray error symbol
.
To fix the problem, click the Problems tab to go to the Problems page, where all elements with problems are listed in a tree view. The compiler error message is listed next to the element that contains the problem.
When you select the problem element, the source code causing the problem is highlighted in the Source pane. You can fix the problem on the Problems page, or on any other Source pane.
When you fix the problem and save the code, the code is compiled and the entry
associated with it is removed from the Problems page. Use the up and down buttons, and
, in the Element pane title bar to
move to the previous or next problem element. The shortcut keys, Ctrl+N and Ctrl+P
will also move the cursor to the next or previous problem in the Problems page.
If you try to run a class while it or its methods contain errors, the Debugger may open and suspend the program. Once you have fixed all problems, and the class runs, you may still experience run-time errors. Use the debugger to help determine the source of this type of problem.
You cannot export to the file system a class that contains errors (you may export it to another repository, though).
Incremental Compilation
The Integrated Debugger
Unresolved Problems
Saving Changes to Code
Running an Applet from the IDE
Running an Application from the IDE