Search code examples
javaintellij-idea

Can't import ArrayUtils on Intellij


So when i try to do this:

import org.apache.commons.lang3.ArrayUtils;

Intellij highlights apache in red and says "cannot resolve symbol 'apache'" I also get an error when my code runs:

Error:(3, 32) java: package org.apache.commons.lang3 does not exist
Error:(27, 28) java: cannot find symbol
  symbol:   variable ArrayUtils
  location: class com.company.Deck

How can I get it to recognize ArrayUtils?

Sorry if this is a very basic question.


Solution

  • You have to download libraries first, then import http://commons.apache.org/proper/commons-net/download_net.cgi