[Pljava-dev] please help - java.lang.ClassNotFoundException: org.postgresql.Driver

From: rath(dot)swaroop at gmail(dot)com (swaroop)
To:
Subject: [Pljava-dev] please help - java.lang.ClassNotFoundException: org.postgresql.Driver
Date: 2010-06-16 22:11:11
Message-ID: AANLkTinRI5_E1ukB43Ut4PAs1RX0CK7XIqq0sJkJVgs5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Hi

I compiled and installed Postgres in Ubuntu Jaunty. I need to develop an
extension to PostgreSQL and this is why I choose to compile from the
sources, rather than using an installer.

I tried to install pljava and followed the steps outlines in "
http://wiki.tada.se/index.php/Installing_on_Linux_(or_other_*nix)" sincerely.
I am sure that I did things correct.

The last step says, run the deployer program. I did that but unfortunately I
get an exception. Please help me here. The exception is below. I tried to
download the jdbc driver at
http://jdbc.postgresql.org/download/postgresql-8.4-701.jdbc3.jar and added
it to classpath. But this did not help. Please advice.

swaroop at swaroop-laptop:~/Project/pljava$ java -cp deploy.jar
org.postgresql.pljava.deploy.Deployer -install
java.lang.ClassNotFoundException: org.postgresql.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at org.postgresql.pljava.deploy.Deployer.main(Deployer.java:238)

Regards
Swaroop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20100616/de389cfe/attachment.html>

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Kris Jurka 2010-06-16 22:32:01 [Pljava-dev] please help - java.lang.ClassNotFoundException: org.postgresql.Driver
Previous Message Kris Jurka 2010-06-16 21:23:20 [Pljava-dev] Compilation with both JDK 5 and JDK 6