agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Help on installing pljava on Windows (no cgwin)
Date: Mon, 16 May 2005 18:40:47 +0200
Message-ID: <thhal-0kmVkAzeTzTYvgohDko3SOxXDuQ2ExO@mailblocks.com> (raw)
In-Reply-To: <20050516160819.34676.qmail@web60320.mail.yahoo.com>
References: <20050516160819.34676.qmail@web60320.mail.yahoo.com>
	<4288CD0F.9000707@mailblocks.com>
	<thhal-0kmVkAzWTzTYKE8+VdRdXz7DFR9GxW3@mailblocks.com>

Juan Manuel Diaz Lara wrote:

> I am having roubles with this:
>  
> From install.sql:
> ----------------------------
> CREATE FUNCTION sqlj.java_call_handler()
> RETURNS language_handler AS 'libpljava'
> LANGUAGE C;
>
> returns the following error:
>
> ERROR: could not load library "C:/Archivos de 
> programa/PostgreSQL/8.0/pljava/libpljava.dll": dynamic load error
>
> Binaries:
> --------------
> pljava-i686-pc-mingw32-pg8.0-1.1.0.tar.gz
>
> System Enviroment:
> --------------------
> JAVA_HOME=C:\j2sdk1.4.2_02
> PATH=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\jre\bin\client
> CLASSPATH=C:\Archivos de programa\PostgreSQL\8.0\pljava\pljava.jar
>
> postgresql.conf:
> --------------------
> custom_variable_classes = 'pljava'
> pljava.classpath = 'C:\\Archivos de 
> programa\\PostgreSQL\\8.0\\pljava\\pljava.jar'
> pljava.statement_cache_size = 10
> pljava.release_lingering_savepoints = true
> pljava.vmoptions = '-Xmx64M'
> pljava.debug = false
>  
> Tanks to any body that could help me.

1. It seems your path is lacking the very essential entries %SystemRoot% 
and %SystemRoot%\system32 (SystemRoot is probably C:\Windows or similar) 
You won't get much working on Windows without those entries.
2. You don't need to have the CLASSPATH setting since you run PostgreSQL 
8.0 or later and already have this setting in postgresql.conf
3. Your Java is very old. Consider an upgrade to either the latest 1.4.2 
(1.4.2_08) or to a J2SE 5.0

Regards,
Thomas Hallgren






view thread (2+ messages)

Message-ID: <thhal-0kmVkAzeTzTYvgohDko3SOxXDuQ2ExO@mailblocks.com>
Permalink:  ../thhal-0kmVkAzeTzTYvgohDko3SOxXDuQ2ExO@mailblocks.com/
Also on:    postgresql.org/message-id/thhal-0kmVkAzeTzTYvgohDko3SOxXDuQ2ExO@mailblocks.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] Help on installing pljava on Windows (no cgwin)
  In-Reply-To: <thhal-0kmVkAzeTzTYvgohDko3SOxXDuQ2ExO@mailblocks.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