2

I want to connect my application with database. I'm using eclipse. JDBC driver added to class path and after compilation I have a message eror:

Could not load requested class : com.postgresql.Driver

my hibernate.cfg.xml looks like:

    <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
    <property name="connection.driver_class">com.postgresql.Driver</property>

    <property name="connection.url">jdbc:postgresql://localhost:5432/postgres</property>

Dou You have any idea?

1 Answer 1

8

The classname is org.postgresql.Driver (not com.)

For details see the manual: http://jdbc.postgresql.org/documentation/93/load.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.