Adding a directory to the classpath of an application run profile in IntelliJ IDEA can be a tricky task. Attempting to override the classpath using the -cp x:target/classes parameter in VM settings can result in the "java.lang.NoClassDefFoundError: com/intellij/rt/execution/application/AppMain" error.
In Intellij 13, the steps for adding a directory to the classpath are slightly different:
After completing these steps, the project will have the selected directory included in its classpath. This allows you to access classes and resources located within that directory during runtime.
The above is the detailed content of How to Add a Directory to the Classpath for Application Run Profiles in IntelliJ IDEA?. For more information, please follow other related articles on the PHP Chinese website!