Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
How import jar apache commons cli

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.

enter image description here

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.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

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?

Dependencies: enter image description here

Class file:

enter image description here

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!