Skip to content
Advertisement

Creating a Java Connector for Pervasive PSQL

How can I create a connector for Pervasive PSQL in Java?

How can I create a connector for Pervasive PSQL? I created a sample connector, but I am not sure whether it is right or wrong.

Advertisement

Answer

Here’s a simple program I have that works for me to connect to a Pervasive PSQL database:

JavaScript

To compile it, I use:

JavaScript

And to run it, I use:

JavaScript

You might need to change the location of the PSQL JAR files if you are using a 64-bit OS.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement