https://stackoverflow.com/questions/24856501/how-do-you-link-a-native-library-to-a-jar-in-intellij
File-->Project Structure-->Modules-->Select Dependencies Tab-->Select Module Source-->at the right corner green '+' button-->Library-->new Library-->java-->select External jar file-->OK-->add Selected
or
Without selecting library from + button directly select jar dependencies
here are some screenshots