I have a project that I need to run, but I can't run it because IntelliJ Idea can't find the apache commons jar. The issue is importing
import org.apache.commons.cli.*;
I know the issue is that IntelliJ can't recognize it. I added the jar to my project, but it can't still able to find it.
I've read in other posts that I would be able to use Maven, but I don't have a pom.xml file available.
Any help will be greatly appreciated.
I cannot reproduce. After adding JAR file to dependencies and adding an import statement on top of the class file everything worked as expected. Maybe try to change scope?
Class file: