Add an external jar file in your IntelliJ project.
things to do.
Add External Libraries for IntelliJ project.
I've met a lot of articles doing the same thing in Eclipse, but not so much in IntelliJ, so I'll leave it as a reminder.
outline
Environment: Ubuntu 18.04
- This time, add ojdbc8.jar in / opt / oracle / instantclient_18_3.
- Add to IntelliJ External Libraries.
Try.
1. Select File-> Project Structure
![メニュー_006.png](https://qiita-image-store.s3.amazonaws.com/0/304366/82576c28-cd28-452c-c5ec-1e9ca6f8ce6f.png)
2. Select Modules-> Dependencies.
![Project Structure_007.png](https://qiita-image-store.s3.amazonaws.com/0/304366/a74b8dba-0ddb-5009-6d6a-cc4b4ee5b210.png)
3. Click the + sign to the right of scope.
Choices are displayed.
4. Select Jars or director ues ...
![メニュー_008.png](https://qiita-image-store.s3.amazonaws.com/0/304366/0f2bebec-4684-65a7-92a9-9e51152d59b0.png)
5. Select /opt/oracle/instantclient/18_3/ojdbc8.jar.
![Attach Files or Directories_009.png](https://qiita-image-store.s3.amazonaws.com/0/304366/36110875-468d-3c09-0168-07eec5346961.png)
Press OK.
5. Check External Libraries
![範囲を選択_012.png](https://qiita-image-store.s3.amazonaws.com/0/304366/8588011a-07cd-f820-e83b-7bf924af795a.png)
was.