agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Pl/JAVA Windows XP
Date: Sat, 19 Feb 2011 01:02:58 -0000
Message-ID: <op.vq4k68rtuxs6vk@localhost> (raw)
In-Reply-To: <BLU149-W355BD4CED6BCC8C01C6B8EE9D40@phx.gbl>
References: <BLU149-W355BD4CED6BCC8C01C6B8EE9D40@phx.gbl>

Hi Alexandre,

On Fri, 18 Feb 2011 16:21:16 -0000, Alexandre Teixeira  
<deamorim2 at hotmail.com> wrote:

> I'm trying to install PL/JAVA in windows XP and I tryed all the   
> possibles variations, from PostgreSQL 8.1 to 9.0 and JDK 1.4 to 6.
> I succced in creating sqlj scheme but it gives me an error when I try to  
> run the PL/Java sample tests. It takes 3 seconds processing and after  
> this it crashes with this message: "********** Erro **********".
> I'm using PostgreSQL 8.3 and jdk1.5.0_22. I tryed PLJAVA that is  
> included in the postgres installation and the  
> pljava-i686-pc-mingw32-pg8.3-1.4.0 PLJAVA instalation.

What exactly are you doing that fails?  Can you give us the steps that  
reproduce the error for you?

> This is the command to run the PL/Java sample tests
>
> SELECT sqlj.install_jar('C:/Program  
> Files/PostgreSQL/8.3/share/pljava/examples.jar', 'samples',  true);

Did that succeed?  Does

CREATE FUNCTION f(TEXT) RETURNS TEXT AS
'java.lang.System.getProperty' LANGUAGE JAVA;

SELECT f( 'user.home' );

work?

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




view thread (2+ messages)

Message-ID: <op.vq4k68rtuxs6vk@localhost>
Permalink:  ../op.vq4k68rtuxs6vk@localhost/
Also on:    postgresql.org/message-id/op.vq4k68rtuxs6vk@localhost

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] Pl/JAVA Windows XP
  In-Reply-To: <op.vq4k68rtuxs6vk@localhost>

* 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