Java Reference
In-Depth Information
5.3.1
Managing Run/Debug configuration profiles
Any project in IDEA may include different executable applications. Your project
may be composed of several applications or may include performance tests, code
generators, database loaders, or other utility programs that you may run during
development. IDEA lets you run any program with a valid Java main method
defined, just as you would run from the command line. The configuration pro-
files give you a way to store all the runtime options required with your project,
making it easier to run the program the next time.
Accessing the configuration panel
To define a new configuration profile, you need to visit the Run/Debug Configu-
rations dialog. There are two ways to access the project's defined Run/Debug con-
figurations: Select Run | Edit Configurations to bring up the Run/Debug
Configurations panel, as shown in figure 5.17; or select Edit Configurations
from the end of the drop-down selections in the Run area of the main toolbar.
The Run/Debug Configurations dialog shows all the configuration profiles
defined in the current project. The tabs across the top of the panel are used to
select the different types of configuration profiles supported by IDEA , although in
this chapter we'll focus on the Application tab:
Application runs command-line or Swing applications launched via a
main() method. More information on running Swing applications can be
found in chapter 10.
Applet runs Java applets through either an applet viewer or a web page
and your local browser.
JU nit executes unit tests written against the JU nit testing framework. Run-
ning unit tests is covered in chapter 7.
Remote specifies configurations for debugging Java applications running
outside of IDEA , such as on an application server. Remote debugging is
covered in chapter 6.
JSR45 Compatible Server is used for running or debugging applications
running inside a JSR45 -compatible application server directly supported
by IDEA 's web server integration features, covered in chapter 11.
To m c a t S e r v e r is used for running or debugging applications running
inside a Tomcat application server directly supported by IDEA 's web server
integration features, covered in chapter 11.
We bl o g ic I n s t a nc e is used for running or debugging applications running
inside a Weblogic application server directly supported by IDEA 's web
server integration features, covered in chapter 11.
 
 
 
 
 
 
 
 
 
 
Search WWH ::




Custom Search