简体   繁体   中英

.jar file for postgreSQL JDBC driver. How to configure?

I am trying to create a connection for the JDBC driver in netbeans for windows. THe problem is that i cannot make a domain source name with the .jar file provided from http://jdbc.postgresql.org/download.html

Can anyone help?

What you need to do to configure the PostgreSQL JDBC drivers is clearly documented in sections 2 and 3 of The PostgreSQL JDBC Interface .

This covers:

  • adding the driver JARs to your project,
  • modifying your source code to use the driver, and
  • creating the "jdbc:" connection URL that tells your Java client code what database to connect to.

If you have a specific question that is not covered by the manual, please update your Question.

If you are making web project then here is a project structure:

TOMCAT_HOME
    -webapps
        -YourProject
             -WEB_INF
                 -lib

Now in lib folder you can have all the jars file used by that project.

By adding files in TOMCAT_HOME/lib you make jars available to all projects on that server. I mean all project deployed on that tomcat.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM