public inbox for [email protected]
help / color / mirror / Atom feedSubject: [Pljava-dev] please help - java.lang.ClassNotFoundException: org.postgresql.Driver
Date: Wed, 16 Jun 2010 19:33:13 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
You need to set LD_LIBRARY_PATH.
export LD_LIBARARY_PATH=<directory that contains libjvm.so>:$LD_LIBRARY_PATH
or this one would be more better
*export
LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client*.
Thanks
--Mansoor
EnterpriseDB Corporation
The Enterprise Postgres Company
Website: http://www.enterprisedb.com
On Wed, Jun 16, 2010 at 7:17 PM, swaroop <rath.swaroop at gmail.com> wrote:
> Thanks a lot Kris. My this problem is solved. The next error I get is
> below. Please have a look. I really need this up and running and really
> appreciate your help. pljava.so is there in the directory. I think it needs
> libjvm.so. Where do I find it ?
>
> swaroop at swaroop-laptop:~/Project/pljava$ java -cp
> postgresql-8.4-701.jdbc4.jar:deploy.jar
> org.postgresql.pljava.deploy.Deployer -install
> org.postgresql.util.PSQLException: ERROR: could not load library
> "/home/swaroop/Project/MayBMS/database/lib/postgresql/pljava.so": libjvm.so:
> cannot open shared object file: No such file or directory
> at
> org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
> at
> org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
> at
> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
> at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
> at
> org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)
> at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:345)
> at
> org.postgresql.pljava.deploy.Deployer.initJavaHandlers(Deployer.java:474)
> at org.postgresql.pljava.deploy.Deployer.main(Deployer.java:269)
>
>
> Regards
> Swaroop
>
>
>
> On Wed, Jun 16, 2010 at 11:32 PM, Kris Jurka <books at ejurka.com> wrote:
>
>> On 6/16/2010 3:11 PM, swaroop wrote:
>>
>>> 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
>>>
>>
>> You need to add it to the classpath here:
>>
>> java -cp postgresql-8.4-701.jdbc3.jar:deploy.jar
>> org.postgresql.pljava.deploy.Deployer -install
>>
>
>
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/pljava-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20100616/7174c678/attachment.html;
view thread (6+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Subject: Re: [Pljava-dev] please help - java.lang.ClassNotFoundException: org.postgresql.Driver
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox