agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] CVS HEAD is now Java 6.
Date: Mon, 05 Dec 2011 12:00:09 +0000
Message-ID: <x6obvnw7na.fsf@2ndquadrant.com> (raw)
In-Reply-To: <4ED91C50.5030201@hogranch.com>
References: <x6r51s1vrt.fsf@2ndquadrant.com>
	<4ED7E5DE.7040703@hogranch.com>
	<C1A6B6FC8196CF43B9B4D0D2C63BFA5A18CB4FCF39@SPR3V9.office.local>
	<4ED91C50.5030201@hogranch.com>

John R Pierce <pierce at hogranch.com> writes:

> On 12/02/11 1:17 AM, David Gradwell wrote:
>> Just so you know, I'm using the current version of pljava against
>> 64 bit postgres 9.0 and jdk1.6.0_26.

I tried reproducing your whole setup as you explained it on #pljava.

On CentOS 5 (I don't have CentOS 6) 64bit.

* PGDG Postgres 9.0 installed with yum.

* Oracle Java installed from RPM.  1.6.0_29 though.

* PL/Java compiled from HEAD with JAVA_HOME=/usr/java/latest and
  USE_LD_RPATH=1.

* PL/Java installed in /usr/share/pljava

* dynamic_library_path = '$libdir:/usr/share/pljava'
  
  custom_variable_classes = 'pljava'

  pljava.classpath = '/usr/share/pljava.jar'

And my smoke test works fine:

postgres=# create function sysprop( text ) returns text as
           'java.lang.System.getProperty' language java;

CREATE FUNCTION
postgres=# select sysprop( 'java.home' );

          sysprop
---------------------------
 /usr/java/jdk1.6.0_29/jre
(1 row)

Can you try upgrading your Java and rebuild again?  Please make sure
/usr/java/latest/bin and /usr/pgsql-9.0/bin are prefixed to your PATH.

Or you can use /usr/java/1.6.0_xx eplicitly for both JAVA_HOME and
your path.


-- 
   Johann Oskarsson                http://www.2ndquadrant.com/    |[]
   PostgreSQL Development, 24x7 Support, Training and Services  --+--
                                                                  |
   Blog: http://my.opera.com/myrkraverk/blog/




view thread (12+ messages)  latest in thread

Message-ID: <x6obvnw7na.fsf@2ndquadrant.com>
Permalink:  ../x6obvnw7na.fsf@2ndquadrant.com/
Also on:    postgresql.org/message-id/x6obvnw7na.fsf@2ndquadrant.com

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: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] CVS HEAD is now Java 6.
  In-Reply-To: <x6obvnw7na.fsf@2ndquadrant.com>

* 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