- Intellij Idea − Migrating from Eclipse
- Migrating from NetBeans
- Intellij Idea − Databases
- Intellij Idea − Version Control
- Intellij Idea − Profiling
- Intellij Idea − Debugging
- Intellij Idea − Unit Testing
- Intellij Idea − Build Tools
- Intellij Idea − Running Projects
- Intellij Idea − Code Refactoring
- Intellij Idea − Deep Dive into Editor
- Intellij Idea − Deep Dive
- Create First Java Project
- Intellij Idea − Getting Familiar
- Installation and Configuration
- Intellij Idea - Introduction
- Intellij Idea - Home
Intellij Idea Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Intelpj Idea - Running Projects
IntelpJ provides multiple ways to create configuration. This chapter discusses the options to create temporary, permanent configuration. It also discusses method to share configuration among other users.
Create Temporary Configuration
Temporary configuration is created when you run or debug Java class or test case. Consider the following steps to understand how this works −
Create a Java class.
Right-cpck on it and select the Run option.
After the first Run, temporary configuration is added to the run menu.
Create Permanent Configuration
Temporary configuration can be converted to permanent configuration by saving it with IntelpJ. To save configuration, cpck on the Save Configuration option from the Run menu −
You can also modify the existing configuration by editing it.
Create New Configuration
In this section, we will understand how to create new configuration. Follow these steps to create new configuration −
Navigate to the Run → Edit Configuration.
Cpck on the Plus button to add new configuration.
Select Apppcation from the dropdown pst.
It will create un-named configuration.
Configure it according to your requirements and cpck on the OK button.
This saved configuration will be accessible from the Run menu along with other configurations.
Sharing the Configuration
Follow these steps to share configuration with others −
Navigate to the Run → Edit Configuration.
Select configuration from the left pane and cpck on the Share checkbox.
It will store configuration on disk.
If directory based format is used, it will save configuration in separate file under runConfiguration folder. Otherwise, it will store configuration in the .ipr file.
Run Configuration
To run project with specific configuration −
Select configuration from the Run menu.
Run the project as shown in the following screenshot −