Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot import javax.validation.constraints in IntelliJ IDEA

I can't import that simple library, i have all jar files, also i tried Ivalidate Caches / Restart. Maybe i have to add validation to build path, but i don't know to which file. enter image description here

like image 252
Raspberry Avatar asked Dec 13 '22 22:12

Raspberry


1 Answers

Got it.

  1. File -> Project Structure
  2. In Modules click Dependecies, then click green "+" on the right side
  3. Click JARs or directiories... and add JAR files
  4. Click OK

    THEN:

  5. File -> Project Structure
  6. In Artifacts click FIX button on right bottom size
  7. Click OK
like image 113
Raspberry Avatar answered Feb 23 '23 09:02

Raspberry