run one package in Intellij

Answered

Hello all,

is it possible to intelliJ to build and run single packages in a Java project and (ignore) the other packages. When I remove the "Build" option from the Run/Debug configuration, then I need each time to rebuild each class in the package manually before running it. This "solution" isn't really effcient.

0
3 comments

When I remove the "Build" option from the Run/Debug configuration

You can enable it back, so all packages would be built automatically. 

There is also "Build project automatically" option: https://i.imgur.com/YPMaMTM.png

 

-1

You can enable it back, so all packages would be built automatically. 

but I want intelliJ just to run and compile the one package from the Project

0

I want intelliJ just to run and compile the one package from the Project

What is the reason? IntelliJ IDEA is optimized, so IDE recompiles only changed classes even when building/compiling the whole project. 

If the reason is the fact that there are errors in some packages and you want to ignore them, see https://stackoverflow.com/a/16784855/8203759

0

Please sign in to leave a comment.