Troubleshooting in the IDE
If a Class that Uses JFC Will Not Run
If you created a class and wrote code for it that uses JFC, then you must update
the class path for it to include the path to the JFC project directory. Otherwise,
the class will not run.
To update the class path:
- Select the class in a browser.
- From the class's pop-up menu, select Run, Check Class Path.
This will open the class Properties notebook to the Class Path page.
- Next to the Project Path field, click Compute Now.
The JFC project path will be added.
- Enable the Save to Repository (as default) check-box.
- Click OK.
If a Browser Shows Incorrect Information
If an IDE browser is displaying incorrect or inconsistent information, follow these
suggestions:
- Refresh the browser. Select Refresh from the Window menu
to refresh the contents of the browser. Under normal circumstances, this action has
no effect. However, if there are internal inconsistencies, this action may correct
the problem.
- Close the browser and reopen it. This action may correct problems that
are not corrected by refreshing the browser.
- Reload the program element. To reload a program element that is
behaving suspiciously.
- Select the program element.
- Select Replace With > Another Edition from its pop-up menu.
- From the list, select the edition that is already in the workspace (marked with an
asterisk,*).
Under normal circumstances, these steps have no effect; however, if there are internal
inconsistencies, they may correct the problem because they may trigger the IDE to
recompile the program element.
- Delete the project and add it back. If re-adding the program
element does not correct the situation, follow these steps to delete and add back the
project that is behaving suspiciously. Do not delete any of the standard class libraries
that come with VisualAge for Java.
- In the Workbench, select the Show Edition Names toolbar button
to see edition names.
- Select the project that you want to temporarily delete from the workspace.
- Make a note of the edition name of the project.
- Select Delete from the project's pop-up menu. Deleting the project
might add unresolved problems, but you can ignore them.
- Click the Add Projects toolbar button
.
- Choose to add projects from the repository.
- Select the project that you deleted.
- Select the edition that you noted in Step 3.
- Select Finish to add the deleted project edition from the repository
back to the workspace.
This step forces the IDE to recompile the project's packages, types, and methods. It
also clears any unresolved problems that VisualAge for Java reported when you deleted the
project.
If a Java Program Does Not Respond
To stop a program that does not respond:
- Select the debug button (
) on any tool
bar.
- In the All Programs/Threads pane of the debugger, select all the threads that were
created for the program.
- Select Terminate from the pop-up menu to terminate the threads.
If a Scrapbook Page Remains Busy
If a Scrapbook page remains busy, select Reset Page from the
page's pop-up men.

Browsing the Workspace
Replacing Editions in the Workspace (Reloading)
Suspending, Resuming, and Terminating Threads
Experimenting with Code Fragments
