agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
[Pljava-dev] latest pljava rebuild on PG8 failure
4+ messages / 0 participants
[nested] [flat]

* [Pljava-dev] latest pljava rebuild on PG8 failure
@ 2005-10-28 13:59 
  2005-10-28 14:36 ` [Pljava-dev] Re: latest pljava rebuild on PG8 failure 
  2005-10-28 14:37 ` [Pljava-dev] Re: latest pljava rebuild on PG8 failure 
  0 siblings, 2 replies; 4+ messages in thread

From:  @ 2005-10-28 13:59 UTC (permalink / raw)

Hi,

I rebuilded lastest PLJAVA/CVS on krn 2.6.11, with PG8.0.3 and JDK 1.5.0_04.
The rebuild is executed correctly but when I obtain a run-time error:

-bash-3.00$ psql -d javatest
javatest=# SELECT sqlj.remove_jar('log4j','true');
INFO:  Exception
INFO:  in thread "main"
ERROR:  Unable to register native methods

javatest=# SELECT sqlj.remove_jar('log4j','true');
ERROR:  Failed to create Java VM

I have already tried (before psql launch) with:
export LD_LIBRARY_PATH=/usr/java/java/jre/lib/i386:/usr/java/java/jre/lib/i386/client/

without any positive result.  :(

Note: before rebuild PLJAVA, the sqlj.remove_jar works correctly.

Another question: which compiler I must use to build under Windows?

TIA
Roberto Colmegna

__________________________________________________________________
TISCALI ADSL
Solo con Tiscali Adsl navighi senza limiti e telefoni senza canone 
Telecom a partire da 19,95 Euro/mese.
Attivala subito, I PRIMI DUE MESI SONO GRATIS! CLICCA QUI:
http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/







^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* [Pljava-dev] Re: latest pljava rebuild on PG8 failure
  2005-10-28 13:59 [Pljava-dev] latest pljava rebuild on PG8 failure 
@ 2005-10-28 14:36 ` 
  1 sibling, 0 replies; 4+ messages in thread

From:  @ 2005-10-28 14:36 UTC (permalink / raw)

rcolmegna at tiscali.it wrote:
> Another question: which compiler I must use to build under Windows?
> 
You must use the gcc compiler (3.4 or later) and a MinGW environment (i.e. you should *not* 
use cygwin).

I committed some new stuff to PL/Java so in order to get the latest and greatest, you must 
do a cvs update now.

Regards,
Thomas Hallgren





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* [Pljava-dev] Re: latest pljava rebuild on PG8 failure
  2005-10-28 13:59 [Pljava-dev] latest pljava rebuild on PG8 failure 
@ 2005-10-28 14:37 ` 
  2005-10-28 14:41   ` [Pljava-dev] Re: latest pljava rebuild on PG8 failure 
  1 sibling, 1 reply; 4+ messages in thread

From:  @ 2005-10-28 14:37 UTC (permalink / raw)

I'll check the CVS again to see if I've made a mistake there. Meanwhile, perhaps you can 
check that your environment is consistent. The problem you are experiencing would typically 
happen if your backend still points to the old pljava.jar but uses the new compiled binary.

Regards,
Thomas Hallgren

rcolmegna at tiscali.it wrote:
> Hi,
> 
> I rebuilded lastest PLJAVA/CVS on krn 2.6.11, with PG8.0.3 and JDK 1.5.0_04.
> The rebuild is executed correctly but when I obtain a run-time error:
> 
> -bash-3.00$ psql -d javatest
> javatest=# SELECT sqlj.remove_jar('log4j','true');
> INFO:  Exception
> INFO:  in thread "main"
> ERROR:  Unable to register native methods
> 
> javatest=# SELECT sqlj.remove_jar('log4j','true');
> ERROR:  Failed to create Java VM
> 
> I have already tried (before psql launch) with:
> export LD_LIBRARY_PATH=/usr/java/java/jre/lib/i386:/usr/java/java/jre/lib/i386/client/
> 
> without any positive result.  :(
> 
> Note: before rebuild PLJAVA, the sqlj.remove_jar works correctly.
> 
> Another question: which compiler I must use to build under Windows?
> 
> TIA
> Roberto Colmegna
> 
> __________________________________________________________________
> TISCALI ADSL
> Solo con Tiscali Adsl navighi senza limiti e telefoni senza canone 
> Telecom a partire da 19,95 Euro/mese.
> Attivala subito, I PRIMI DUE MESI SONO GRATIS! CLICCA QUI:
> http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* [Pljava-dev] Re: latest pljava rebuild on PG8 failure
  2005-10-28 13:59 [Pljava-dev] latest pljava rebuild on PG8 failure 
  2005-10-28 14:37 ` [Pljava-dev] Re: latest pljava rebuild on PG8 failure 
@ 2005-10-28 14:41   ` 
  0 siblings, 0 replies; 4+ messages in thread

From:  @ 2005-10-28 14:41 UTC (permalink / raw)


On Oct 28, 2005, at 9:37 AM, Thomas Hallgren wrote:

> I'll check the CVS again to see if I've made a mistake there.  
> Meanwhile, perhaps you can check that your environment is  
> consistent. The problem you are experiencing would typically happen  
> if your backend still points to the old pljava.jar but uses the new  
> compiled binary.
>
> Regards,
> Thomas Hallgren

I rebuilt PL/Java earlier today from the sources from CVS and did  
some rudimentary tests.  No problems, so I do not think there is  
anything wrong with the sources in CVS.

Rakesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20051028/f2fe485f/attachment.html;



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2005-10-28 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-10-28 13:59 [Pljava-dev] latest pljava rebuild on PG8 failure 
2005-10-28 14:36 ` 
2005-10-28 14:37 ` 
2005-10-28 14:41   ` 

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox