You can run a program using either of these methods:
If the file has not been compiled or the .class file is out of date, the IDE compiles the file before running it. If there are no compiler errors, the IDE switches to the running workspace, which displays your running application and the Execution View and Output windows.
Some versions of the IDE include an Execute (Force Reload) command on the Build menu. This command is similar to the Execute command and is defined for J2EE components. Many servers enable you to do a "hot deploy," which quickly loads an individual component to the server. This shortens the development cycle as compared to redeploying the entire application. The simple Execute command uses the hot deploy feature. This method, however, is not always reliable. You may get class version clashes and some components may not be refreshed. The Execute (Force Reload) command is slower, but guarantees all components are properly installed on the server.
See also | |
---|---|
Compiling, Running, and Debugging a Project
Specifying Arguments for Program Execution Setting Runtime Options for the Environment Running a JSP File |