Skip to content
Advertisement

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

Advertisement

Answer

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
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement