在菜单Run -> Edit Configurations -> Application 里的你的项目的Configuration -> VM Options里添加:
-Djava.library.path=/usr/local/java/lib:/usr/local/hadoop/lib