Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC on Java Application on Fedora

 
Panagiotis Panais
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He all!

I have a java-application on Linux, and i want to make this application to communicate with a postgresql database. How can i setup my JDBC driver on Linux, so mt application can see my database?

On Windows is very easy with JDBC/ODBC but on Linux

Thanks everyone!
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to Java Ranch.

You need to use a Postgres JDBC driver rather than the JdbcOdbc driver. The rest of your code should be the same, i.e. you shouldn't need to change it for different drivers.

Have a look at this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic