agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Building / installing for CentOS or Fedora
Date: Fri, 15 Feb 2013 11:55:44 -0700
Message-ID: <511e84bb.a2e8440a.3a40.ffff89f0@mx.google.com> (raw)
In-Reply-To: <20130215182118.GL14298@eddie.tb20>
References: <511e538b.4553420a.51be.1fa8@mx.google.com>
	<20130215182457.455342b1@sys-251.netcologne.de>
	<20130215182118.GL14298@eddie.tb20>

On Fri, Feb 15, 2013 at 11:21:18AM -0700, eggyknap wrote:
> Perhaps by installing your version of the nar plugin from github, I've
> succeeded. I'll test this out. Thanks.

Well, it's a qualified success. After running maven, I couldn't find any
pljava.so or pljava.jar files anywhere, so I went into various subdirectories
and ran ant manually, which created some files named similarly to what I was
looking for. I put them manually into the PostgreSQL $libdir, because I liked
that method better than fiddling with dynamic_library_path, and after changing
LD_LIBRARY_PATH so postgres could find libjvm.so, was able to create the
language successfully.

Now I'm loading the examples, and get this:

pljava=# select
sqlj.install_jar('file:///home/josh/devel/pljava-build/pljava-examples/target/pljava-examples-0.0.1-SNAPSHOT.jar',
'samples', true);
WARNING:  java.lang.NoClassDefFoundError:
org/postgresql/pljava/internal/Backend
ERROR:  Unable to load class org/postgresql/pljava/internal/Backend using
CLASSPATH
'-Djava.class.path=target/lib//pljava.jar:/etc/alternatives/java_sdk/lib/management-agent.jar:/etc/alternatives/java_sdk/lib/tools.jar'

I'll see if I can figure out how to make that target/lib/pljava.jar classpath
absolute, and ... something meaninful. I expected maven to create nicely
packaged .so and .jar files for me, and it didn't, which suggests I'm doing
something else wrong.


--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20130215/18c561cc/attachment.bin;



view thread (7+ messages)  latest in thread

Message-ID: <511e84bb.a2e8440a.3a40.ffff89f0@mx.google.com>
Permalink:  ../511e84bb.a2e8440a.3a40.ffff89f0@mx.google.com/
Also on:    postgresql.org/message-id/511e84bb.a2e8440a.3a40.ffff89f0@mx.google.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] Building / installing for CentOS or Fedora
  In-Reply-To: <511e84bb.a2e8440a.3a40.ffff89f0@mx.google.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