LoginSignup
15
9

More than 5 years have passed since last update.

IntelliJのプロジェクトで外部のjarファイルを追加する。

Posted at

やること。

IntelliJのプロジェクトのExternal Librariesを追加します。
Eclipseで同様のことを行っている記事はたくさん会ったのですが、IntelliJではあまりないので備忘録として残しておきます。

アウトライン

環境:Ubuntu18.04
1. 今回は/opt/oracle/instantclient_18_3内にあるojdbc8.jarを追加する。
2. 追加先はIntelliJ External Libraries。

やってみる。

1. File -> Project Structureを選ぶ

メニュー_006.png

2. Modules-> Dependenciesを選ぶ。

Project Structure_007.png

3. scopeの右あたりにある+記号をクリック。

選択肢が表示される。

4. Jars or directorues...を選択する

メニュー_008.png

5. /opt/oracle/instantclient/18_3/ojdbc8.jarを選択する。

Attach Files or Directories_009.png

OKを押す。

5. External Librariesを確認

範囲を選択_012.png

ありました。

15
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
9