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
You can't just run a JDBC driver as if it was an executable JAR.
will produce the error:
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