agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] Error installing examples - Unrecognized JINI version x10004
Date: Mon, 13 Sep 2004 19:58:21 +0200
Message-ID: <4145DFBD.8050402@mailblocks.com> (raw)
In-Reply-To: <005701c499b2$d70a2050$0164a8c0@ipe>
References: <005701c499b2$d70a2050$0164a8c0@ipe>
Rodrigo,
Add the following lines to your postgresql.conf:
custom_variable_classes = pljava
pljava.classpath = 'E:\\PostgreSQL80_Beta2\\data\\pljava.jar'
(please not the double '\\' everywhere. The '\' is treated as an escape
character by the parser that reads postrgresql.conf).
The postgresql.jar and deploy.jar should *not* be included here since
this is the classpath seen by the backend. The pljava.jar contains the
classes needed by the backend only.
The deploy.jar is a client program and it in turn needs postgresql.jar
(the client JDBC driver). The pljava.jar should *not* be in your
classpath for the client programs. It's important to make this
distinction. I.e. one classpath for the backend and another for client
programs.
Regarding the JNI version error:
I checked if there was any difference between Java 1.4 version defines
but there isn't. This leads me to believe that the PATH you claim you
have is not the PATH that is visible to the backend process, i.e. it's
not the path in effect when the postmaster is started. The backend
process somehow finds an older JRE (1.3 perhaps?) and attempts to load it.
Please note that the PATH containing the JRE bin and JRE bin/client
directories must be visible to the backend process, i.e. it must be in
effect when the postmaster is started. Havin the JRE directories in your
path is normally not needed when running client programs as long as you
can find java.exe.
Regards,
Thomas Hallgren
> Hi Thomas,
>
> I install PostgreSQL 8.0 for windows in a Windows XP and when i
> run sqlj.install_jar i get the following message in postgresql.log
>
> "Unrecognized JINI version x10004"
> Failed to create Java VM
> attempt to redefine parameter "pljava.vmoptions"
>
> I'm using jre "1.4.1_01"
>
> classpath include
> E:\PostgreSQL80_Beta2\data\pljava.jar;E:\PostgreSQL80_Beta2\data\deploy.jar;E:\PostgreSQL80_Beta2\data\postgresql.jar
> ...
>
> path include
> E:\j2sdk1.4.1_01\jre\lib\i386;E:\j2sdk1.4.1_01\jre\lib\jre\lib\i386\client ...
>
> Regards,
>
> Rodrigo Foscarini
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Pljava-dev mailing list
>Pljava-dev at gborg.postgresql.org
>http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>
>
view thread (2+ messages)
Message-ID: <4145DFBD.8050402@mailblocks.com>
Permalink: ../4145DFBD.8050402@mailblocks.com/
Also on: postgresql.org/message-id/4145DFBD.8050402@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] Error installing examples - Unrecognized JINI version x10004
In-Reply-To: <4145DFBD.8050402@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