How to add directory to classpath in an application run profile in IntelliJ IDEA?

I’m trying to add a directory to the classpath of an application run profile

If I override by using -cp x:target/classes in the VM settings, I get the following error:

java.lang.NoClassDefFoundError: com/intellij/rt/execution/application/AppMain

Any idea on how to add a directory to the classpath for my project?

8 Answers
8

Leave a Comment