Key Lay
Key Lay

Reputation: 366

how can I include a directory in the runtime classpath in Intellij

I would like to have intellij do the equivalent of:

java -cp "target/skinny.jar:target/lib/*" com.example.ClassName arg2 arg1

Please show how this can be accomplished in intellij idea.

Upvotes: 1

Views: 482

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 401945

You can add a library for the directory/multiple directories/jars and then include this library into the module dependencies.

There is no option to provide custom classpath in the Run/Debug configuration at the moment, so it has to be done in the Project Structure.

Upvotes: 1

Related Questions