Intellij: build path

File > Project Structure > Modules > Select projects that is going to “add build path” > Dependencies > “+” at bottom > JARs or directories > select outside JAR file.