Import the postgres library into the intellij idea IDE

Asked

Viewed 662 times

0

I started using IDE intellij idea a short time ago to develop in java, previously used net Beans and when I was going to use the database for my application it was simple to import the library from the database, as I do in intellij idea?

  • In case the bank library you say would be the correct Driver ? If yes, you need to add in the classpath of your application, you use some build tool type Maven ?

  • You refer to manually adding a lib (jar file) to the project?

  • yes would be the driver,in this project no, but has the Maven ,I never used, I saw something about making installs through it, could help me with greater details?

  • would manually dictionary the driver a lib, on the net you were in the project in lib and import the drive already in intellij do not know how to do

1 answer

1

  1. Click on your project and then: File > Project Structure...

inserir a descrição da imagem aqui

  1. Under Project Settings, go to Modules > Dependencies > "+" sign > Jars or Directories...

inserir a descrição da imagem aqui

  1. Select the jar file and click OK, then OK again to confirm. inserir a descrição da imagem aqui

  2. You can see the jar file in the folder "External Libraries". inserir a descrição da imagem aqui

  • vlw brother!!! that’s just what I wanted

  • If the answer helped you, mark it as correct (click the green arrow) to help other users who have the same question as yours.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.