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.
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
- Java – setting classpath
- Including all the jars in a directory within the Java classpath
- Run a JAR file from the command line and specify classpath
- Auto errors detection in IntelliJ IDEA
- java.lang.ClassNotFoundException when running in IntelliJ IDEA
- How do you change the CLASSPATH within Java?
- How to connect SQLite with Java?
- What is the best way to deploy JavaFX application, create JAR and self-contained applications and native installers
- Java “lambda expressions not supported at this language level”
- Differences between “java -cp” and “java -jar”?
- How do I set up IntelliJ IDEA for Android applications?
- How to see JavaDoc in IntelliJ IDEA? [duplicate]
- JAVA_HOME should point to a JDK not a JRE
- Classpath resource within jar
- Best way to add Gradle support to IntelliJ Project
- How to make a “fat jar” of a Maven project? [duplicate]
- “The filename or extension is too long error” using gradle
- Problems importing project into Android Studio regarding ActionBarSherlock
- How to use ClassLoader.getResources() correctly? [duplicate]
- Building with Intellij 2017.2 /out directory duplicates files in /build directory
- Unable to use Intellij with a generated sources folder
- Class Not Found: Empty Test Suite in IntelliJ
- Change remote repository credentials (authentication) on Intellij IDEA 14
- Java Class.forName() from distant directory
- IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7
- How to add resources to classpath
- Mac User – How do I set CLASSPATHS in Mac (I’m working on a Lucene Demo)