You can right click on any directory in your IntelliJ project, select “Mark Directory As…”, and choose “Source Root”. That director folder will change color from yellow to blue; IntelliJ considers all those directories to be in your CLASSPATH.
More Related Contents:
- How to add directory to classpath in an application run profile in IntelliJ IDEA?
- Intellij Cannot resolve symbol on import
- IntelliJ IDEA: “cannot resolve symbol” for String, System and other Java classes
- Add a properties file to IntelliJ’s classpath
- How to set -source 1.7 in Android Studio and Gradle
- Maven Compilation Error: (use -source 7 or higher to enable diamond operator)
- Error: JavaFX runtime components are missing, and are required to run this application with JDK 11 [duplicate]
- Invalid signature file digest for Manifest main attributes exception while trying to run jar file
- Java command line with external .jar
- Enable Partial Compilation in IntelliJ IDEA
- Android Studio cannot resolve symbol but code executes correctly
- Why does IntelliJ give me “Package doesn’t exist” error?
- How to debug a multi-threaded app in IntelliJ?
- How to set a long Java classpath in Windows?
- Error:java: javacTask: source release 8 requires target release 1.8
- stop IntelliJ IDEA to switch java language level every time the pom is reloaded (or change the default project language level)
- Remove source file comments using IntelliJ?
- how to make jni.h be found?
- deploy/debug java code on a remote server using Intellij
- getting compile error for diamond operator in idea ide
- IntelliJ – Convert a Java project/module into a Maven project/module
- How to clean project cache in IntelliJ IDEA like Eclipse’s clean?
- intellij incorrectly saying no beans of type found for autowired repository
- Is it possible to “add” to classpath dynamically in java?
- How to use IntelliJ IDEA to find all unused code?
- I am getting “java.lang.ClassNotFoundException: com.google.gson.Gson” error even though it is defined in my classpath
- ClassLoader getResourceAsStream returns null
- IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7
- Kotlin: Use a lambda in place of a functional interface?
- Build and deploy javafx application using java11