From: terencenwk at hotmail.com (Terence Ng) Date: Mon, 21 Jul 2008 23:23:39 +0800 Subject: [Pljava-dev] java.lang.NoClassDefFoundError In-Reply-To: <48845272.2080707@ejurka.com> References: <484B5E37.1080008@ejurka.com> <484C1EBE.40807@ejurka.com> <484FFAE9.9000908@ejurka.com> <48845272.2080707@ejurka.com> Message-ID: Hi Kris, After I set LD_LIBRARY_PATH and run uninstall.sql, there still has an error saying "java" does not exit. Why? Do I have to set /etc/ld.so.conf.d/postgresql.conf (as in SLES10) when I am using SOLARIS 10? # echo $JAVA_HOME/usr/jdk/instances/jdk1.5.0# echo $LD_LIBRARY_PATH/usr/postgres/8.2/lib:/usr/jdk/instances/jdk1.5.0/jre/lib/amd64:/usr/jdk/instances/jdk1.5.0/jre/lib/amd64/native_threads:/usr/jdk/instances/jdk1.5.0/jre/lib/amd64/server# echo $JAVA_HOME/usr/jdk/instances/jdk1.5.0# svcadm restart postgresql:version_82# psql -d adempiere -U adempiere -f /var/tmp/pljava/pljava-1.4.0/src/sql/uninstall.sqlPassword for user adempiere:psql:/var/tmp/pljava/pljava-1.4.0/src/sql/uninstall.sql:1: ERROR: language "java" does not existpsql:/var/tmp/pljava/pljava-1.4.0/src/sql/uninstall.sql:2: ERROR: language "javau" does not existpsql:/var/tmp/pljava/pljava-1.4.0/src/sql/uninstall.sql:3: ERROR: schema "sqlj" does not exist#Regards, Terence > Date: Mon, 21 Jul 2008 03:10:10 -0600> From: books at ejurka.com> To: terencenwk at hotmail.com> CC: pljava-dev at pgfoundry.org> Subject: Re: [Pljava-dev] java.lang.NoClassDefFoundError> > > > Terence Ng wrote:> > > > I suppose I have installed pljava adequately. But I discover that > > something wrong and want to re-install it again...but fail to install.. > > I do not know where should I start. Please give me some suggestions.> > > > I don't believe your install worked correctly. To clear out the old> installation there should be an uninstall.sql alongside the install.sql> file. So I'd give that a shot.> > > psql:/usr/postgres/8.2/share/install.sql:6: ERROR: could not load > > library "/usr/postgres/8.2/lib/pljava.so": ld.so.1: postgres: fatal: > > libjvm.so: open failed: No such file or directory> > This is your real problem here. I'm guessing you haven't set> LD_LIBRARY_PATH appropriately prior to starting the server.> > Kris Jurka _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: