agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Failed to create Java VM, WinXP
Date: Fri, 24 Jun 2011 22:09:09 +0000
Message-ID: <x6r56ic262.fsf@2ndquadrant.com> (raw)
In-Reply-To: <F3CBFBA88397EA498B22A05FFA9EC49D295E9189@MX22A.corp.emc.com>
References: <F3CBFBA88397EA498B22A05FFA9EC49D295E9189@MX22A.corp.emc.com>

<david.sahagian at emc.com> writes:

> ()
> I added the following entries to the PATH var:
>
> set PATH=%PATH%;C:\Program Files\Java\jre6\bin;C:\Program
> Files\Java\jre6\bin\client

Where do you apply these settings?  The PATH with the Java
installation has to be visible to the Postgres process.

Going overly technical on you, the environment variables are cloned
between processes in Unix systems.

Process A sets X=V.  It then spawns a new process B.  This causes B to
inherit all settings from A, including X=V.  Process B sets X=W.  On
reading X, process A still has the value V.  They are not shared.
Process C spawned from B will now have X=W.  It inherits the new
settings from B.

I've been told they behave exactly like this on Windows as well so it
matters a lot where and how the PATH settings are applied so the
Postgres server process, started as a Windows Service will read the
new values.

If you have another scripting language installed, you may be able to
read the server process' environment.  Or with a C module.


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





view thread (4+ messages)  latest in thread

Message-ID: <x6r56ic262.fsf@2ndquadrant.com>
Permalink:  ../x6r56ic262.fsf@2ndquadrant.com/
Also on:    postgresql.org/message-id/x6r56ic262.fsf@2ndquadrant.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] Failed to create Java VM, WinXP
  In-Reply-To: <x6r56ic262.fsf@2ndquadrant.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