Question

I am using CentOS and Postgresql as my database.

According to this thread SQL Developer can now support Postgresql. So I manage to download the requirement such as SQL Developer 4.0 and Postgresql jdbc connector.

Is there a step by step procedure how to install the jdbc connector to sql developer? I tried to follow the PostgreSQL documentation but with no luck.

I tried to extract/install the jar file using java -jar postgresql-9.3_1100.jdbc41.jar the return is no main manifest attribute in postgresql-9.3_1100.jdbc41.jar

my java version is: 1.7.0_45

Was it helpful?

Solution

You can't just run a JDBC driver as if it was an executable JAR.

java -jar postgresql-9.3_1100.jdbc41.jar

will produce the error:

no main manifest attribute in postgresql-9.3_1100.jdbc41.jar

because it has no main manifest attribute in the jar. That's because you're not supposed to run it.

Install the JDBC driver, like any other JDBC driver, according to the instructions for your application. See "Oracle SQL Developer" install JDBC driver.

The above search finds instructions on installing 3rd party (non-Oracle) JDBC drivers and "Configure JDBC in Oracle JDBC driver". I strongly suggest following those instructions.

In future, please explain step by step what you've done when you're having a problem, where you get stuck, and what you expect to happen instead.

P.s. I've submitted a patch to PgJDBC so that when you try this in future, it'll give you an informative error. See https://github.com/pgjdbc/pgjdbc/pull/112

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top