How to add directory to classpath in an application run profile in IntelliJ IDEA?
In Intellij 13, it looks it's slightly different again. Here are the instructions for Intellij 13:
- click on the Project view or unhide it by clicking on the "1: Project" button on the left border of the window or by pressing Alt + 1
- find your project or sub-module and click on it to highlight it, then press F4, or right click and choose "Open Module Settings" (on IntelliJ 14 it became F12)
- click on the dependencies tab
- Click the "+" button on the right and select "Jars or directories..."
- Find your path and click OK
- In the dialog with "Choose Categories of Selected File", choose
Classes
(even if it's properties), press OK and OK again - You can now run your application and it will have the selected path in the class path
How to include directories in classpath of Intellij run configuration
Right click on the directory, which you want to add in the class path.
And then select option "mark directory as" with different options e.g. "Sources Route", "Resources Route" etc.
Apply the option as per the need.
Add a properties file to IntelliJ's classpath
Try this:
- Go to Project Structure.
- Select your module.
- Find the folder in the tree on the right and select it.
- Click the Sources button above that tree (with the blue folder) to make that folder a sources folder.
Related Topics
Convert Iterable to Stream Using Java 8 Jdk
Spring Boot CSS Showing Up Blank/Not Loading After Trying Everything
Resume Http File Download in Java
Android.View.Inflateexception Error Inflating Class Android.Webkit.Webview
How to Get the Subscription Information from Google Play Android Developer API
Android 6.0 Open Failed: Eacces (Permission Denied)
Swagger Ui Is Not Loading Swagger API Json
How to Create a Jandex Index in Quarkus for Classes in a External Module
Interview Question: Check If One String Is a Rotation of Other String
What Is More Efficient, I++ or ++I
Proper Implementation of Cubic Spline Interpolation
Pure Java HTML Viewer/Renderer for Use in a Scrollable Pane
How to Escape Special HTML Characters in Jsp
Java Unsupported Major Minor Version 52.0
Loading Images from Jars for Swing HTML
Why One Should Prefer Using CSS Over Xpath in Ie
Java Ee 6 @Javax.Annotation.Managedbean VS. @Javax.Inject.Named VS. @Javax.Faces.Managedbean
How to Get a Unique Computer Identifier in Java (Like Disk Id or Motherboard Id)